Skip to content

Commit

Permalink
Input: gtco - eliminate early return
Browse files Browse the repository at this point in the history
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: Julia Lawall <julia@diku.dk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Julia Lawall authored and Dmitry Torokhov committed Jul 7, 2008
1 parent 0e7e92f commit f4bc95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/tablet/gtco.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ static int gtco_probe(struct usb_interface *usbinterface,
gtco->urbinfo = usb_alloc_urb(0, GFP_KERNEL);
if (!gtco->urbinfo) {
err("Failed to allocate URB");
return -ENOMEM;
error = -ENOMEM;
goto err_free_buf;
}

Expand Down

0 comments on commit f4bc95d

Please sign in to comment.