[media] av7110: remove a bogus smatch warning
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Feb 2016 17:14:41 +0000 (14:14 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Feb 2016 10:25:21 +0000 (07:25 -0300)
Remove this bogus smatch warning:
drivers/media/pci/ttpci/av7110.c:2211 frontend_init() warn: missing break? reassigning 'av7110->fe'

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/ttpci/av7110.c

index 18d229fa65cfb3839e61a60cd8f4dfebd8fc55eb..382caf200ba16769d811296c3057aa2aa99edbe4 100644 (file)
@@ -2198,13 +2198,18 @@ static int frontend_init(struct av7110 *av7110)
                        break;
 
                case 0x0001: // Hauppauge/TT Nexus-T premium rev1.X
+               {
+                       struct dvb_frontend *fe;
+
                        // try ALPS TDLB7 first, then Grundig 29504-401
-                       av7110->fe = dvb_attach(sp8870_attach, &alps_tdlb7_config, &av7110->i2c_adap);
-                       if (av7110->fe) {
-                               av7110->fe->ops.tuner_ops.set_params = alps_tdlb7_tuner_set_params;
+                       fe = dvb_attach(sp8870_attach, &alps_tdlb7_config, &av7110->i2c_adap);
+                       if (fe) {
+                               fe->ops.tuner_ops.set_params = alps_tdlb7_tuner_set_params;
+                               av7110->fe = fe;
                                break;
                        }
-                       /* fall-thru */
+               }
+               /* fall-thru */
 
                case 0x0008: // Hauppauge/TT DVB-T
                        // Grundig 29504-401