]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Input: gtco - eliminate early return
authorJulia Lawall <julia@diku.dk>
Thu, 3 Jul 2008 16:10:58 +0000 (12:10 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 7 Jul 2008 13:01:30 +0000 (09:01 -0400)
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>
drivers/input/tablet/gtco.c

index 1e748e46d12e1c68c9fc05972064941306659698..b9b7a98bc5a5b49a450d46b4a94fcc6f8037ee89 100644 (file)
@@ -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;
        }