Skip to contentSkip to conversation

media: atmel: atmel-isc: Remove redundant assignment to i

PATCH New Jiapeng Chong 1 participant 1 message May 17, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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].

---
 drivers/media/platform/atmel/atmel-isc-base.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/atmel/atmel-isc-base.c +0 -1
index ce8e135..a017572c 100644
@@ -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++) {
Signature · 1 line
1.8.3.1