aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dtt200u-fe.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2006-05-12 19:36:24 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 01:00:23 -0400
commit8397703ee0cc9ca27df5c058f60c4d4f1dc69595 (patch)
treea4c3e7c3715778eb2ce6ef0981fcebea5499f3ec /drivers/media/dvb/dvb-usb/dtt200u-fe.c
parent19b7ad314897cf4a2122208c6b9a372c50308c19 (diff)
V4L/DVB (4014): Remove the spagetti code gotos that aren't useful
Some code had pointless gotos that just didn't make any sense. They didn't make the code smaller, or faster, or easier to understand. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dtt200u-fe.c')
-rw-r--r--drivers/media/dvb/dvb-usb/dtt200u-fe.c4
1 files changed, 1 insertions, 3 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;
172error: 172error:
173 return NULL; 173 return NULL;
174success:
175 return &state->frontend;
176} 174}
177 175
178static struct dvb_frontend_ops dtt200u_fe_ops = { 176static struct dvb_frontend_ops dtt200u_fe_ops = {