aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/b2c2/flexcop-usb.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/b2c2/flexcop-usb.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/b2c2/flexcop-usb.c')
-rw-r--r--drivers/media/dvb/b2c2/flexcop-usb.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-usb.c b/drivers/media/dvb/b2c2/flexcop-usb.c
index 06ec9fff0ec1..515954f96c9a 100644
--- a/drivers/media/dvb/b2c2/flexcop-usb.c
+++ b/drivers/media/dvb/b2c2/flexcop-usb.c
@@ -433,11 +433,10 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)
433 flexcop_wan_set_speed(fc_usb->fc_dev,FC_WAN_SPEED_8MBITS); 433 flexcop_wan_set_speed(fc_usb->fc_dev,FC_WAN_SPEED_8MBITS);
434 flexcop_sram_ctrl(fc_usb->fc_dev,1,1,1); 434 flexcop_sram_ctrl(fc_usb->fc_dev,1,1,1);
435 435
436 ret = 0; 436 return 0;
437 goto success; 437
438urb_error: 438urb_error:
439 flexcop_usb_transfer_exit(fc_usb); 439 flexcop_usb_transfer_exit(fc_usb);
440success:
441 return ret; 440 return ret;
442} 441}
443 442
@@ -515,15 +514,14 @@ static int flexcop_usb_probe(struct usb_interface *intf,
515 goto err_fc_exit; 514 goto err_fc_exit;
516 515
517 info("%s successfully initialized and connected.",DRIVER_NAME); 516 info("%s successfully initialized and connected.",DRIVER_NAME);
518 ret = 0; 517 return 0;
519 goto success; 518
520err_fc_exit: 519err_fc_exit:
521 flexcop_device_exit(fc); 520 flexcop_device_exit(fc);
522err_usb_exit: 521err_usb_exit:
523 flexcop_usb_exit(fc_usb); 522 flexcop_usb_exit(fc_usb);
524err_kfree: 523err_kfree:
525 flexcop_device_kfree(fc); 524 flexcop_device_kfree(fc);
526success:
527 return ret; 525 return ret;
528} 526}
529 527