Commit 9eb9db3a authored by Songjun Wu's avatar Songjun Wu Committed by Mauro Carvalho Chehab
Browse files

[media] atmel-isc: Fix the static checker warning



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

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarSongjun Wu <songjun.wu@microchip.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent d72b196f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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++;