Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1624612 > unrolled thread

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

Started bySongjun Wu <songjun.wu@microchip.com>
First post2017-04-17 11:20 +0200
Last post2017-04-17 11:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] [media] atmel-isc: Fix the static checker warning Songjun Wu <songjun.wu@microchip.com> - 2017-04-17 11:20 +0200

#1624612 — [PATCH] [media] atmel-isc: Fix the static checker warning

FromSongjun Wu <songjun.wu@microchip.com>
Date2017-04-17 11:20 +0200
Subject[PATCH] [media] atmel-isc: Fix the static checker warning
Message-ID<txaZb-7lG-1@gated-at.bofh.it>
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>
---

 drivers/media/platform/atmel/atmel-isc.c | 1 +
 1 file changed, 1 insertion(+)

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++;
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web