Skip to contentSkip to conversation

atmel-isc: Fix the static checker warning

PATCH New Songjun Wu 1 participant 1 message Apr 17, 2017

Subsystems (2)
lore
Share & tools
lore

Songjun Wu

author
#0 lore raw

PATCH 1/1 atmel-isc: Fix the static checker warning

Initialize the pointer 'fmt' before the start of
the loop.

---

 drivers/media/platform/atmel/atmel-isc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/platform/atmel/atmel-isc.c +1 -0
index 7dacf8c1354f..c4b2115559a5 100644
@@ -1490,6 +1490,7 @@ static int isc_formats_init(struct isc_device *isc)
 		}
 	}
 
+	fmt = &isc_formats[0];
 	for (i = 0, num_fmts = 0; i < ARRAY_SIZE(isc_formats); i++) {
 		if (fmt->isc_support || fmt->sd_support)
 			num_fmts++;
Signature · 1 line
2.11.0