浏览代码

[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>
Songjun Wu 8 年之前
父节点
当前提交
9eb9db3a0f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/media/platform/atmel/atmel-isc.c

+ 1 - 0
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++) {
 	for (i = 0, num_fmts = 0; i < ARRAY_SIZE(isc_formats); i++) {
 		if (fmt->isc_support || fmt->sd_support)
 		if (fmt->isc_support || fmt->sd_support)
 			num_fmts++;
 			num_fmts++;