summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/b2c2/flexcop-usb.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-05-19 11:11:16 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-05-19 11:11:16 -0300
commit8bf2cc99d48eabe83872a51ceb427ea64cff7207 (patch)
tree214200fa2cb8d56f69d407cade04d4a110ca3e5b /linux/drivers/media/dvb/b2c2/flexcop-usb.c
parentc7b8d03d39aaf7055bb88d7983839eaee56c62db (diff)
parentf40e092350ab797c7d40bb399d287a20a1f4f649 (diff)
downloadmediapointer-dvb-s2-8bf2cc99d48eabe83872a51ceb427ea64cff7207.tar.gz
mediapointer-dvb-s2-8bf2cc99d48eabe83872a51ceb427ea64cff7207.tar.bz2
merge: http://linuxtv.org/hg/~pb/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/b2c2/flexcop-usb.c')
-rw-r--r--linux/drivers/media/dvb/b2c2/flexcop-usb.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/b2c2/flexcop-usb.c b/linux/drivers/media/dvb/b2c2/flexcop-usb.c
index c29abd803..8a3ae27f8 100644
--- a/linux/drivers/media/dvb/b2c2/flexcop-usb.c
+++ b/linux/drivers/media/dvb/b2c2/flexcop-usb.c
@@ -433,11 +433,10 @@ static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb)
flexcop_wan_set_speed(fc_usb->fc_dev,FC_WAN_SPEED_8MBITS);
flexcop_sram_ctrl(fc_usb->fc_dev,1,1,1);
- ret = 0;
- goto success;
+ return 0;
+
urb_error:
flexcop_usb_transfer_exit(fc_usb);
-success:
return ret;
}
@@ -515,15 +514,14 @@ static int flexcop_usb_probe(struct usb_interface *intf,
goto err_fc_exit;
info("%s successfully initialized and connected.",DRIVER_NAME);
- ret = 0;
- goto success;
+ return 0;
+
err_fc_exit:
flexcop_device_exit(fc);
err_usb_exit:
flexcop_usb_exit(fc_usb);
err_kfree:
flexcop_device_kfree(fc);
-success:
return ret;
}