[media] saa7164: fix compiler warning
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 1 May 2015 11:45:28 +0000 (08:45 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 12:09:58 +0000 (09:09 -0300)
drivers/media/pci/saa7164/saa7164-dvb.c: In function ‘saa7164_dvb_register’:
drivers/media/pci/saa7164/saa7164-dvb.c:701:7: warning: ‘client_tuner’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    if (!client_tuner || !client_tuner->dev.driver)
       ^

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/saa7164/saa7164-dvb.c

index c68ce2631e8f13fb1d164e19d69ab46dfe8bc0d7..99698002a808e74461e4d8ac27194d0e706608ea 100644 (file)
@@ -698,7 +698,7 @@ int saa7164_dvb_register(struct saa7164_port *port)
                        request_module(info.type);
                        client_demod = i2c_new_device(&dev->i2c_bus[2].i2c_adap,
                                                      &info);
-                       if (!client_tuner || !client_tuner->dev.driver)
+                       if (!client_demod || !client_demod->dev.driver)
                                goto frontend_detach;
 
                        if (!try_module_get(client_demod->dev.driver->owner)) {