summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorSongjun Wu <songjun.wu@microchip.com>2017-04-17 06:07:57 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-19 09:02:47 -0300
commit9eb9db3a0f92b75ec710066202e0b2accb45afa9 (patch)
tree06e8da26db32f95f9dddabde7e3f01cfe093661a /drivers/media
parentd72b196f96e2afad1656c9332da7ffe3b07e17cb (diff)
[media] atmel-isc: Fix the static checker warning
Initialize the pointer 'fmt' before the start of the loop. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Songjun Wu <songjun.wu@microchip.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/atmel/atmel-isc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c
index 7dacf8c1354f..c4b2115559a5 100644
--- a/drivers/media/platform/atmel/atmel-isc.c
+++ b/drivers/media/platform/atmel/atmel-isc.c
@@ -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++;