Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Michael Krufky and committed by
Mauro Carvalho Chehab
ee03a679 d12f51aa

+3 -3
+3 -3
drivers/media/dvb/dvb-usb/opera1.c
··· 263 263 264 264 static int opera1_frontend_attach(struct dvb_usb_adapter *d) 265 265 { 266 - if ((d->fe_adap[0].fe = 267 - dvb_attach(stv0299_attach, &opera1_stv0299_config, 268 - &d->dev->i2c_adap)) != NULL) { 266 + d->fe_adap[0].fe = dvb_attach(stv0299_attach, &opera1_stv0299_config, 267 + &d->dev->i2c_adap); 268 + if ((d->fe_adap[0].fe) != NULL) { 269 269 d->fe_adap[0].fe->ops.set_voltage = opera1_set_voltage; 270 270 return 0; 271 271 }