aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/opera1.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2011-09-17 14:03:26 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-21 09:08:09 -0400
commitee03a6795e6a303e498e1c87e1e5d3702258e329 (patch)
treeca7611151ac1514b3390004a2381b87844170dfd /drivers/media/dvb/dvb-usb/opera1.c
parentd12f51aa7bd43667078d021ba89e6ed8bfe42432 (diff)
[media] opera1: 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/opera1.c')
-rw-r--r--drivers/media/dvb/dvb-usb/opera1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/opera1.c b/drivers/media/dvb/dvb-usb/opera1.c
index b6e12f9665b3..98fd9a6092b7 100644
--- a/drivers/media/dvb/dvb-usb/opera1.c
+++ b/drivers/media/dvb/dvb-usb/opera1.c
@@ -263,9 +263,9 @@ static struct stv0299_config opera1_stv0299_config = {
263 263
264static int opera1_frontend_attach(struct dvb_usb_adapter *d) 264static int opera1_frontend_attach(struct dvb_usb_adapter *d)
265{ 265{
266 if ((d->fe_adap[0].fe = 266 d->fe_adap[0].fe = dvb_attach(stv0299_attach, &opera1_stv0299_config,
267 dvb_attach(stv0299_attach, &opera1_stv0299_config, 267 &d->dev->i2c_adap);
268 &d->dev->i2c_adap)) != NULL) { 268 if ((d->fe_adap[0].fe) != NULL) {
269 d->fe_adap[0].fe->ops.set_voltage = opera1_set_voltage; 269 d->fe_adap[0].fe->ops.set_voltage = opera1_set_voltage;
270 return 0; 270 return 0;
271 } 271 }