From 052045ca483a54c46fa9bbe9a71f6aefbe88a6a4 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 19 Jun 2021 23:05:13 +0000 Subject: [PATCH] amlogic: osd: Fix self assign warnings Change-Id: Ib7cbf268dcaf9115c423f5fea3eb88c5819aea24 --- drivers/amlogic/media/osd/osd_hw.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/amlogic/media/osd/osd_hw.c b/drivers/amlogic/media/osd/osd_hw.c index 88c0ceb2bcff..30754470e9f5 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -1875,8 +1875,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; } @@ -1907,8 +1906,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; } -- 2.20.1