aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-uclogic.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hid/hid-uclogic.c b/drivers/hid/hid-uclogic.c
index 6a59f6a28f7e..790528e47000 100644
--- a/drivers/hid/hid-uclogic.c
+++ b/drivers/hid/hid-uclogic.c
@@ -777,7 +777,6 @@ static int uclogic_tablet_enable(struct hid_device *hdev)
777 len = UCLOGIC_PRM_NUM * sizeof(*buf); 777 len = UCLOGIC_PRM_NUM * sizeof(*buf);
778 buf = kmalloc(len, GFP_KERNEL); 778 buf = kmalloc(len, GFP_KERNEL);
779 if (buf == NULL) { 779 if (buf == NULL) {
780 hid_err(hdev, "failed to allocate parameter buffer\n");
781 rc = -ENOMEM; 780 rc = -ENOMEM;
782 goto cleanup; 781 goto cleanup;
783 } 782 }
@@ -821,7 +820,6 @@ static int uclogic_tablet_enable(struct hid_device *hdev)
821 sizeof(uclogic_tablet_rdesc_template), 820 sizeof(uclogic_tablet_rdesc_template),
822 GFP_KERNEL); 821 GFP_KERNEL);
823 if (drvdata->rdesc == NULL) { 822 if (drvdata->rdesc == NULL) {
824 hid_err(hdev, "failed to allocate fixed rdesc\n");
825 rc = -ENOMEM; 823 rc = -ENOMEM;
826 goto cleanup; 824 goto cleanup;
827 } 825 }