Commit ee03a679 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

[media] opera1: fix ERROR: do not use assignment in if condition

Signed-off-by: default avatarMichael Krufky <mkrufky@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d12f51aa
...@@ -263,9 +263,9 @@ static struct stv0299_config opera1_stv0299_config = { ...@@ -263,9 +263,9 @@ static struct stv0299_config opera1_stv0299_config = {
static int opera1_frontend_attach(struct dvb_usb_adapter *d) static int opera1_frontend_attach(struct dvb_usb_adapter *d)
{ {
if ((d->fe_adap[0].fe = d->fe_adap[0].fe = dvb_attach(stv0299_attach, &opera1_stv0299_config,
dvb_attach(stv0299_attach, &opera1_stv0299_config, &d->dev->i2c_adap);
&d->dev->i2c_adap)) != NULL) { if ((d->fe_adap[0].fe) != NULL) {
d->fe_adap[0].fe->ops.set_voltage = opera1_set_voltage; d->fe_adap[0].fe->ops.set_voltage = opera1_set_voltage;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment