amlogic: osd: Fix self assign warnings
authorStricted <info@stricted.net>
Sat, 19 Jun 2021 23:05:13 +0000 (23:05 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 3 Jul 2021 01:04:31 +0000 (21:04 -0400)
Change-Id: Ib7cbf268dcaf9115c423f5fea3eb88c5819aea24

drivers/amlogic/media/osd/osd_hw.c

index a78a53141b30e213cf27e7ad78b0bd4647d02fde..6aa44fa2256828651e1af4288ae9b5681af5790c 100644 (file)
@@ -1857,8 +1857,7 @@ static u32 line_stride_calc(
        /* need wr ddr is 32bytes aligned */
        if (stride_align_32bytes)
                line_stride = ((line_stride+1)>>1)<<1;
-       else
-               line_stride = line_stride;
+
        return line_stride;
 }
 
@@ -1889,8 +1888,7 @@ static u32 line_stride_calc_afbc(
        /* need wr ddr is 32bytes aligned */
        if (stride_align_32bytes)
                line_stride = ((line_stride+1) >> 1) << 1;
-       else
-               line_stride = line_stride;
+
        return line_stride;
 }