summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dibusb-mb.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2011-09-17 14:38:50 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-21 10:07:20 -0300
commitd4dd5ce7cae4210539b0a0a11d17ac5912e6496f (patch)
tree823e3f2105004275fe7157c23dc4afc3d831ba9b /drivers/media/dvb/dvb-usb/dibusb-mb.c
parentd9abcd743ecbaaf3044d22070245d48814e81771 (diff)
downloadblackbird-obmc-linux-d4dd5ce7cae4210539b0a0a11d17ac5912e6496f.tar.gz
blackbird-obmc-linux-d4dd5ce7cae4210539b0a0a11d17ac5912e6496f.zip
[media] dibusb-mb: fix ERROR: do not use assignment in if condition
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dibusb-mb.c')
-rw-r--r--drivers/media/dvb/dvb-usb/dibusb-mb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/dibusb-mb.c b/drivers/media/dvb/dvb-usb/dibusb-mb.c
index c65bfbfb64ea..7270791f8340 100644
--- a/drivers/media/dvb/dvb-usb/dibusb-mb.c
+++ b/drivers/media/dvb/dvb-usb/dibusb-mb.c
@@ -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;
OpenPOWER on IntegriCloud