This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: mediatek: vcodec: fix minmax.cocci warning
Author:  Guo Zhengkui <[email protected]>
Date:    Tue Jun 14 08:25:59 2022 +0100

Fix the following coccicheck warning:

drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c:
694:15-16: WARNING opportunity for min().

Signed-off-by: Guo Zhengkui <[email protected]>
Reviewed-by: Nicolas Dufresne <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c 
b/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c
index f464af190d8c..81de876d5126 100644
--- a/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c
+++ b/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c
@@ -691,7 +691,7 @@ static int vdec_vp9_slice_tile_offset(int idx, int mi_num, 
int tile_log2)
        int sbs = (mi_num + 7) >> 3;
        int offset = ((idx * sbs) >> tile_log2) << 3;
 
-       return offset < mi_num ? offset : mi_num;
+       return min(offset, mi_num);
 }
 
 static

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to