summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-29 08:02:31 -0200
committerBen Hutchings <ben@decadent.org.uk>2017-11-11 13:34:45 +0000
commitc67f7e9c10ae7473ee7293605d72612d2ede011b (patch)
tree4797e3ca762b11d849e24bf2cbc18741d9c5bee9 /drivers
parentef6b182cf489ada959d51e222e7aaf83ff0ee73e (diff)
downloadlinux-c67f7e9c10ae7473ee7293605d72612d2ede011b.tar.gz
linux-c67f7e9c10ae7473ee7293605d72612d2ede011b.tar.bz2
linux-c67f7e9c10ae7473ee7293605d72612d2ede011b.zip
xc4000: Fix a few warnings
commit 0d0d76e5bcd70439b0e736a99539d7eef4f87baf upstream. drivers/media/tuners/xc4000.c: In function ‘check_firmware’: drivers/media/tuners/xc4000.c:1048:45: warning: ‘fw_minor’ may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/media/tuners/xc4000.c:1048:39: warning: ‘fw_major’ may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/media/tuners/xc4000.c:1062:39: warning: ‘hw_minor’ may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/media/tuners/xc4000.c:1062:33: warning: ‘hw_major’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> [bwh: Backported to 3.2: adjust filename] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/common/tuners/xc4000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/xc4000.c b/drivers/media/common/tuners/xc4000.c
index 634f4d9b6c63..3b9fdba8880f 100644
--- a/drivers/media/common/tuners/xc4000.c
+++ b/drivers/media/common/tuners/xc4000.c
@@ -923,7 +923,7 @@ 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, fw_major = 0, fw_minor = 0;
dprintk(1, "%s called\n", __func__);