diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2011-09-17 13:55:47 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-21 09:07:26 -0400 |
commit | 331423c46df9df000586c08223be95a34a881cc0 (patch) | |
tree | 5c4a289ae9d7f6336af7be8653db6c6ce34ed932 /drivers/media/dvb/dvb-usb | |
parent | d4dd5ce7cae4210539b0a0a11d17ac5912e6496f (diff) |
[media] digitv: 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')
-rw-r--r-- | drivers/media/dvb/dvb-usb/digitv.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c index edabdae5accb..f7184111aa64 100644 --- a/drivers/media/dvb/dvb-usb/digitv.c +++ b/drivers/media/dvb/dvb-usb/digitv.c | |||
@@ -137,11 +137,16 @@ static int digitv_frontend_attach(struct dvb_usb_adapter *adap) | |||
137 | { | 137 | { |
138 | struct digitv_state *st = adap->dev->priv; | 138 | struct digitv_state *st = adap->dev->priv; |
139 | 139 | ||
140 | if ((adap->fe_adap[0].fe = dvb_attach(mt352_attach, &digitv_mt352_config, &adap->dev->i2c_adap)) != NULL) { | 140 | adap->fe_adap[0].fe = dvb_attach(mt352_attach, &digitv_mt352_config, |
141 | &adap->dev->i2c_adap); | ||
142 | if ((adap->fe_adap[0].fe) != NULL) { | ||
141 | st->is_nxt6000 = 0; | 143 | st->is_nxt6000 = 0; |
142 | return 0; | 144 | return 0; |
143 | } | 145 | } |
144 | if ((adap->fe_adap[0].fe = dvb_attach(nxt6000_attach, &digitv_nxt6000_config, &adap->dev->i2c_adap)) != NULL) { | 146 | adap->fe_adap[0].fe = dvb_attach(nxt6000_attach, |
147 | &digitv_nxt6000_config, | ||
148 | &adap->dev->i2c_adap); | ||
149 | if ((adap->fe_adap[0].fe) != NULL) { | ||
145 | st->is_nxt6000 = 1; | 150 | st->is_nxt6000 = 1; |
146 | return 0; | 151 | return 0; |
147 | } | 152 | } |