aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-04-23 22:26:58 -0700
committerZiyan <jaraidaniel@gmail.com>2016-10-29 01:34:12 +0200
commita24f1265583098c5fa02d4e25dca90ca95c4d304 (patch)
tree8a56bf25654de5302fcfa85310019f7661d59fbf
parent96722b2c393aa2ff498cf4b5d2abfbcfa992e30b (diff)
downloadkernel_samsung_tuna-a24f1265583098c5fa02d4e25dca90ca95c4d304.zip
kernel_samsung_tuna-a24f1265583098c5fa02d4e25dca90ca95c4d304.tar.gz
kernel_samsung_tuna-a24f1265583098c5fa02d4e25dca90ca95c4d304.tar.bz2
Input: aiptek - adjust error-handling code label
At the point of this error-handling code, aiptek->urb has been allocated, and it does not appear to be less necessary to free it here than in the error-handling code just below. Change-Id: I1b07d7cd62a3df78759dd5a9a5ad27e58350df01 Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r--drivers/input/tablet/aiptek.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/tablet/aiptek.c b/drivers/input/tablet/aiptek.c
index 0bbdf3e..c0531c2 100644
--- a/drivers/input/tablet/aiptek.c
+++ b/drivers/input/tablet/aiptek.c
@@ -1817,7 +1817,7 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id)
"interface has %d endpoints, but must have minimum 1\n",
intf->altsetting[0].desc.bNumEndpoints);
err = -EINVAL;
- goto fail2;
+ goto fail3;
}
endpoint = &intf->altsetting[0].endpoint[0].desc;
@@ -1862,7 +1862,7 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id)
dev_info(&intf->dev,
"Aiptek tried all speeds, no sane response\n");
err = -EINVAL;
- goto fail2;
+ goto fail3;
}
/* Associate this driver's struct with the usb interface.