Skip to content

Commit

Permalink
[media] opera1: fix ERROR: do not use assignment in if condition
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Sep 21, 2011
1 parent d12f51a commit ee03a67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/dvb/dvb-usb/opera1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ee03a67

Please sign in to comment.