[media] opera1: fix ERROR: do not use assignment in if condition
authorMichael Krufky <mkrufky@kernellabs.com>
Sat, 17 Sep 2011 18:03:26 +0000 (15:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Sep 2011 13:08:09 +0000 (10:08 -0300)
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/opera1.c

index b6e12f9..98fd9a6 100644 (file)
@@ -263,9 +263,9 @@ static struct stv0299_config opera1_stv0299_config = {
 
 static int opera1_frontend_attach(struct dvb_usb_adapter *d)
 {
-       if ((d->fe_adap[0].fe =
-            dvb_attach(stv0299_attach, &opera1_stv0299_config,
-                       &d->dev->i2c_adap)) != NULL) {
+       d->fe_adap[0].fe = dvb_attach(stv0299_attach, &opera1_stv0299_config,
+                                     &d->dev->i2c_adap);
+       if ((d->fe_adap[0].fe) != NULL) {
                d->fe_adap[0].fe->ops.set_voltage = opera1_set_voltage;
                return 0;
        }