提交 9eb9db3a 编写于 作者: S Songjun Wu 提交者: Mauro Carvalho Chehab

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

Initialize the pointer 'fmt' before the start of
the loop.
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NSongjun Wu <songjun.wu@microchip.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 d72b196f
......@@ -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++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册