Skip to contentSkip to conversation

media: tuners: initialize hw and fw ids in xc4000.c

PATCH New Simon Que 1 participant 1 message Jan 17, 2013 Media (V4L/DVB)

lore
Share & tools
lore

Simon Que

author
#0 lore raw

PATCH 1/1 media: tuners: initialize hw and fw ids in xc4000.c

These variables are implicitly initialized by passing them to xc_get_version(). However, initializing them to 0 explicitly will avoid compile warnings.

---
 drivers/media/tuners/xc4000.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/media/tuners/xc4000.c +2 -1
index 4937712..d9dd53d 100644
@@ -934,7 +934,8 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
 	int			   rc = 0, is_retry = 0;
 	u16			   hwmodel;
 	v4l2_std_id		   std0;
-	u8			   hw_major, hw_minor, fw_major, fw_minor;
+	u8			   hw_major = 0, hw_minor = 0;
+	u8			   fw_major = 0, fw_minor = 0;
 
 	dprintk(1, "%s called\n", __func__);
 
Signature · 1 line
1.7.8.6