Message ID | 8408b92e-81fc-89d2-6bf3-e7948673fed6@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c index 9573e0b41922..5e143552dab9 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -564,10 +564,8 @@ static int asus_start_multitouch(struct hid_device *hdev) const unsigned char buf[] = { FEATURE_REPORT_ID, 0x00, 0x03, 0x01, 0x00 }; unsigned char *dmabuf = kmemdup(buf, sizeof(buf), GFP_KERNEL); - if (!dmabuf) { - ret = -ENOMEM; - return ret; - } + if (!dmabuf) + return -ENOMEM; ret = hid_hw_raw_request(hdev, dmabuf[0], dmabuf, sizeof(buf), HID_FEATURE_REPORT, HID_REQ_SET_REPORT);