diff options
author | Patrick Boettcher <patrick.boettcher@desy.de> | 2006-09-28 12:48:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:51 -0500 |
commit | 94a47dc4335a614eba30cf29aa3a953040625c92 (patch) | |
tree | 9f4bac3430ca0203f751ea299a6931b298e6b86e | |
parent | 26f48eaa9e57a3436fc049f30241256dda002de5 (diff) |
V4L/DVB (5132): M920x: more trivial cleanups
- Removed some needless brances
- Removed an unneeded check for adapter[0]
- Removed unneeded declaration of .generic_bulk_ctrl_endpoint = 0x01
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/dvb/dvb-usb/m920x.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/media/dvb/dvb-usb/m920x.c b/drivers/media/dvb/dvb-usb/m920x.c index 14b32ff40ed5..9e5ec080529d 100644 --- a/drivers/media/dvb/dvb-usb/m920x.c +++ b/drivers/media/dvb/dvb-usb/m920x.c | |||
@@ -138,12 +138,6 @@ static int m9206_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int nu | |||
138 | int i; | 138 | int i; |
139 | int ret = 0; | 139 | int ret = 0; |
140 | 140 | ||
141 | /* Need to access d->adapter[0] */ | ||
142 | if (d->num_adapters_initialized != 1) { | ||
143 | deb_rc("Impossible happened!\n"); | ||
144 | return -EINVAL; | ||
145 | } | ||
146 | |||
147 | if (mutex_lock_interruptible(&d->i2c_mutex) < 0) | 141 | if (mutex_lock_interruptible(&d->i2c_mutex) < 0) |
148 | return -EAGAIN; | 142 | return -EAGAIN; |
149 | 143 | ||
@@ -247,9 +241,8 @@ static int megasky_frontend_attach(struct dvb_usb_adapter *adap) | |||
247 | { | 241 | { |
248 | deb_rc("megasky_frontend_attach!\n"); | 242 | deb_rc("megasky_frontend_attach!\n"); |
249 | 243 | ||
250 | if ((adap->fe = dvb_attach(mt352_attach, &megasky_mt352_config, &adap->dev->i2c_adap)) != NULL) { | 244 | if ((adap->fe = dvb_attach(mt352_attach, &megasky_mt352_config, &adap->dev->i2c_adap)) != NULL) |
251 | return 0; | 245 | return 0; |
252 | } | ||
253 | return -EIO; | 246 | return -EIO; |
254 | } | 247 | } |
255 | 248 | ||
@@ -474,8 +467,6 @@ static struct dvb_usb_device_properties megasky_properties = { | |||
474 | }}, | 467 | }}, |
475 | .i2c_algo = &m9206_i2c_algo, | 468 | .i2c_algo = &m9206_i2c_algo, |
476 | 469 | ||
477 | .generic_bulk_ctrl_endpoint = 0x01, | ||
478 | |||
479 | .num_device_descs = 1, | 470 | .num_device_descs = 1, |
480 | .devices = { | 471 | .devices = { |
481 | { "MSI Mega Sky 580 DVB-T USB2.0", | 472 | { "MSI Mega Sky 580 DVB-T USB2.0", |