From: Jiapeng Chong Date: Mon, 17 May 2021 10:07:48 +0000 (+0200) Subject: media: atmel: atmel-isc: Remove redundant assignment to i X-Git-Tag: accepted/tizen/unified/20230118.172025~6722^2~166 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c75f11fbe4de0d4ccba14e7125607fd5ca12e294;p=platform%2Fkernel%2Flinux-rpi.git media: atmel: atmel-isc: Remove redundant assignment to i Variable i is being assigned a value however the assignment is never read, so this redundant assignment can be removed. Clean up the following clang-analyzer warning: drivers/media/platform/atmel/atmel-isc-base.c:975:2: warning: Value stored to 'i' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel-isc-base.c index ce8e135..a017572c 100644 --- a/drivers/media/platform/atmel/atmel-isc-base.c +++ b/drivers/media/platform/atmel/atmel-isc-base.c @@ -972,7 +972,6 @@ static int isc_enum_fmt_vid_cap(struct file *file, void *priv, index -= ARRAY_SIZE(controller_formats); - i = 0; supported_index = 0; for (i = 0; i < ARRAY_SIZE(formats_list); i++) {