This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/media_tree.git tree:

Subject: [media] ttpci: cleanup a bogus smatch warning
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Mon Feb 22 14:22:04 2016 -0300

Cleanup this bogus smatch warning:
        drivers/media/pci/ttpci/budget.c:635 frontend_init() warn: missing 
break? reassigning 'budget->dvb_frontend'

And document the fall through logic at the switch().

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/pci/ttpci/budget.c | 32 +++++++++++++++++++++++---------
 1 file changed, 23 insertions(+), 9 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=3915d367932609f9c0bdc79c525b5dd5a806ab18
diff --git a/drivers/media/pci/ttpci/budget.c b/drivers/media/pci/ttpci/budget.c
index 9f48100227f1..fb8ede5a1531 100644
--- a/drivers/media/pci/ttpci/budget.c
+++ b/drivers/media/pci/ttpci/budget.c
@@ -615,33 +615,47 @@ static void frontend_init(struct budget *budget)
                break;
 
        case 0x1016: // Hauppauge/TT Nova-S SE (samsung s5h1420/????(tda8260))
-               budget->dvb_frontend = dvb_attach(s5h1420_attach, 
&s5h1420_config, &budget->i2c_adap);
-               if (budget->dvb_frontend) {
-                       budget->dvb_frontend->ops.tuner_ops.set_params = 
s5h1420_tuner_set_params;
-                       if (dvb_attach(lnbp21_attach, budget->dvb_frontend, 
&budget->i2c_adap, 0, 0) == NULL) {
+       {
+               struct dvb_frontend *fe;
+
+               fe = dvb_attach(s5h1420_attach, &s5h1420_config, 
&budget->i2c_adap);
+               if (fe) {
+                       fe->ops.tuner_ops.set_params = s5h1420_tuner_set_params;
+                       budget->dvb_frontend = fe;
+                       if (dvb_attach(lnbp21_attach, fe, &budget->i2c_adap,
+                                      0, 0) == NULL) {
                                printk("%s: No LNBP21 found!\n", __func__);
                                goto error_out;
                        }
                        break;
                }
-
+       }
+       /* fall through */
        case 0x1018: // TT Budget-S-1401 (philips tda10086/philips tda8262)
+       {
+               struct dvb_frontend *fe;
+
                // gpio2 is connected to CLB - reset it + leave it high
                saa7146_setgpio(budget->dev, 2, SAA7146_GPIO_OUTLO);
                msleep(1);
                saa7146_setgpio(budget->dev, 2, SAA7146_GPIO_OUTHI);
                msleep(1);
 
-               budget->dvb_frontend = dvb_attach(tda10086_attach, 
&tda10086_config, &budget->i2c_adap);
-               if (budget->dvb_frontend) {
-                       if (dvb_attach(tda826x_attach, budget->dvb_frontend, 
0x60, &budget->i2c_adap, 0) == NULL)
+               fe = dvb_attach(tda10086_attach, &tda10086_config, 
&budget->i2c_adap);
+               if (fe) {
+                       budget->dvb_frontend = fe;
+                       if (dvb_attach(tda826x_attach, fe, 0x60,
+                                      &budget->i2c_adap, 0) == NULL)
                                printk("%s: No tda826x found!\n", __func__);
-                       if (dvb_attach(lnbp21_attach, budget->dvb_frontend, 
&budget->i2c_adap, 0, 0) == NULL) {
+                       if (dvb_attach(lnbp21_attach, fe,
+                                      &budget->i2c_adap, 0, 0) == NULL) {
                                printk("%s: No LNBP21 found!\n", __func__);
                                goto error_out;
                        }
                        break;
                }
+       }
+       /* fall through */
 
        case 0x101c: { /* TT S2-1600 */
                        const struct stv6110x_devctl *ctl;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to