]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
HID: uclogic: Remove allocation failure messages
authorNikolai Kondrashov <spbnick@gmail.com>
Wed, 14 Sep 2016 18:38:15 +0000 (21:38 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 19 Sep 2016 12:32:22 +0000 (14:32 +0200)
Remove unnecessary allocation failure messages from hid-uclogic.c,
following the checkpatch.pl recommendations.

Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-uclogic.c

index 6a59f6a28f7e5f33605a0cbf8c6d14dc15513389..790528e47000acf61c3d7bf7f49642ace2f05084 100644 (file)
@@ -777,7 +777,6 @@ static int uclogic_tablet_enable(struct hid_device *hdev)
        len = UCLOGIC_PRM_NUM * sizeof(*buf);
        buf = kmalloc(len, GFP_KERNEL);
        if (buf == NULL) {
-               hid_err(hdev, "failed to allocate parameter buffer\n");
                rc = -ENOMEM;
                goto cleanup;
        }
@@ -821,7 +820,6 @@ static int uclogic_tablet_enable(struct hid_device *hdev)
                                sizeof(uclogic_tablet_rdesc_template),
                                GFP_KERNEL);
        if (drvdata->rdesc == NULL) {
-               hid_err(hdev, "failed to allocate fixed rdesc\n");
                rc = -ENOMEM;
                goto cleanup;
        }