Revert "HID: steelseries: validate output report details"
authorAmit Pundir <amit.pundir@linaro.org>
Tue, 26 Apr 2016 09:44:35 +0000 (15:14 +0530)
committerDmitry Shmidt <dimitrysh@google.com>
Tue, 26 Apr 2016 19:52:38 +0000 (12:52 -0700)
This reverts commit 90037b2720acffa6da2269a10ecf24ec2dace89b.

Remove duplicate code. This patch is already upstreamed in v4.4,
commit 41df7f6d4372 (HID: steelseries: validate output report details).

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
drivers/hid/hid-steelseries.c

index 93ddc1c65b4ccee72c51a054928020420414c06d..3edd4ac364942b1f181a5577a2d8db757efea540 100644 (file)
@@ -253,11 +253,6 @@ static int steelseries_srws1_probe(struct hid_device *hdev,
                goto err_free;
        }
 
-       if (!hid_validate_values(hdev, HID_OUTPUT_REPORT, 0, 0, 16)) {
-               ret = -ENODEV;
-               goto err_free;
-       }
-
        ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
        if (ret) {
                hid_err(hdev, "hw start failed\n");