Commit f4bc95d7 authored by Julia Lawall's avatar Julia Lawall Committed by Dmitry Torokhov

Input: gtco - eliminate early return

There seems to be no reason why this error case should do less
cleaning up than the other adjacent ones, so the goto, which is
currently dead code, seems to be what is intended.
Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 0e7e92fa
...@@ -863,7 +863,7 @@ static int gtco_probe(struct usb_interface *usbinterface, ...@@ -863,7 +863,7 @@ static int gtco_probe(struct usb_interface *usbinterface,
gtco->urbinfo = usb_alloc_urb(0, GFP_KERNEL); gtco->urbinfo = usb_alloc_urb(0, GFP_KERNEL);
if (!gtco->urbinfo) { if (!gtco->urbinfo) {
err("Failed to allocate URB"); err("Failed to allocate URB");
return -ENOMEM; error = -ENOMEM;
goto err_free_buf; goto err_free_buf;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment