[media] dibusb-mb: fix ERROR: do not use assignment in if condition
authorMichael Krufky <mkrufky@kernellabs.com>
Sat, 17 Sep 2011 17:38:50 +0000 (14:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Sep 2011 13:07:20 +0000 (10:07 -0300)
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dibusb-mb.c

index c65bfbf..7270791 100644 (file)
@@ -31,8 +31,9 @@ static int dibusb_dib3000mb_frontend_attach(struct dvb_usb_adapter *adap)
 
        demod_cfg.demod_address = 0x8;
 
-       if ((adap->fe_adap[0].fe = dvb_attach(dib3000mb_attach, &demod_cfg,
-                                  &adap->dev->i2c_adap, &st->ops)) == NULL)
+       adap->fe_adap[0].fe = dvb_attach(dib3000mb_attach, &demod_cfg,
+                                        &adap->dev->i2c_adap, &st->ops);
+       if ((adap->fe_adap[0].fe) == NULL)
                return -ENODEV;
 
        adap->fe_adap[0].fe->ops.i2c_gate_ctrl = dib3000mb_i2c_gate_ctrl;