diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dtt200u-fe.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dvb-usb-dvb.c | 7 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/vp702x-fe.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/vp7045-fe.c | 4 |
4 files changed, 6 insertions, 13 deletions
diff --git a/drivers/media/dvb/dvb-usb/dtt200u-fe.c b/drivers/media/dvb/dvb-usb/dtt200u-fe.c index cd21ddbfd054..2df6da2b54f8 100644 --- a/drivers/media/dvb/dvb-usb/dtt200u-fe.c +++ b/drivers/media/dvb/dvb-usb/dtt200u-fe.c | |||
@@ -168,11 +168,9 @@ struct dvb_frontend* dtt200u_fe_attach(struct dvb_usb_device *d) | |||
168 | state->frontend.ops = &state->ops; | 168 | state->frontend.ops = &state->ops; |
169 | state->frontend.demodulator_priv = state; | 169 | state->frontend.demodulator_priv = state; |
170 | 170 | ||
171 | goto success; | 171 | return &state->frontend; |
172 | error: | 172 | error: |
173 | return NULL; | 173 | return NULL; |
174 | success: | ||
175 | return &state->frontend; | ||
176 | } | 174 | } |
177 | 175 | ||
178 | static struct dvb_frontend_ops dtt200u_fe_ops = { | 176 | static struct dvb_frontend_ops dtt200u_fe_ops = { |
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c index 500896d02d5a..2517b228381d 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c +++ b/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c | |||
@@ -121,16 +121,15 @@ int dvb_usb_dvb_init(struct dvb_usb_device *d) | |||
121 | 121 | ||
122 | dvb_net_init(&d->dvb_adap, &d->dvb_net, &d->demux.dmx); | 122 | dvb_net_init(&d->dvb_adap, &d->dvb_net, &d->demux.dmx); |
123 | 123 | ||
124 | goto success; | 124 | d->state |= DVB_USB_STATE_DVB; |
125 | return 0; | ||
126 | |||
125 | err_dmx_dev: | 127 | err_dmx_dev: |
126 | dvb_dmx_release(&d->demux); | 128 | dvb_dmx_release(&d->demux); |
127 | err_dmx: | 129 | err_dmx: |
128 | dvb_unregister_adapter(&d->dvb_adap); | 130 | dvb_unregister_adapter(&d->dvb_adap); |
129 | err: | 131 | err: |
130 | return ret; | 132 | return ret; |
131 | success: | ||
132 | d->state |= DVB_USB_STATE_DVB; | ||
133 | return 0; | ||
134 | } | 133 | } |
135 | 134 | ||
136 | int dvb_usb_dvb_exit(struct dvb_usb_device *d) | 135 | int dvb_usb_dvb_exit(struct dvb_usb_device *d) |
diff --git a/drivers/media/dvb/dvb-usb/vp702x-fe.c b/drivers/media/dvb/dvb-usb/vp702x-fe.c index 2a89f8c5da99..9d26f46de091 100644 --- a/drivers/media/dvb/dvb-usb/vp702x-fe.c +++ b/drivers/media/dvb/dvb-usb/vp702x-fe.c | |||
@@ -293,11 +293,9 @@ struct dvb_frontend * vp702x_fe_attach(struct dvb_usb_device *d) | |||
293 | s->lnb_buf[1] = SET_LNB_POWER; | 293 | s->lnb_buf[1] = SET_LNB_POWER; |
294 | s->lnb_buf[3] = 0xff; /* 0=tone burst, 2=data burst, ff=off */ | 294 | s->lnb_buf[3] = 0xff; /* 0=tone burst, 2=data burst, ff=off */ |
295 | 295 | ||
296 | goto success; | 296 | return &s->fe; |
297 | error: | 297 | error: |
298 | return NULL; | 298 | return NULL; |
299 | success: | ||
300 | return &s->fe; | ||
301 | } | 299 | } |
302 | 300 | ||
303 | 301 | ||
diff --git a/drivers/media/dvb/dvb-usb/vp7045-fe.c b/drivers/media/dvb/dvb-usb/vp7045-fe.c index 9999336aeeb6..e98e5a517f5a 100644 --- a/drivers/media/dvb/dvb-usb/vp7045-fe.c +++ b/drivers/media/dvb/dvb-usb/vp7045-fe.c | |||
@@ -155,11 +155,9 @@ struct dvb_frontend * vp7045_fe_attach(struct dvb_usb_device *d) | |||
155 | s->fe.ops = &s->ops; | 155 | s->fe.ops = &s->ops; |
156 | s->fe.demodulator_priv = s; | 156 | s->fe.demodulator_priv = s; |
157 | 157 | ||
158 | goto success; | 158 | return &s->fe; |
159 | error: | 159 | error: |
160 | return NULL; | 160 | return NULL; |
161 | success: | ||
162 | return &s->fe; | ||
163 | } | 161 | } |
164 | 162 | ||
165 | 163 | ||