platform/x86: intel-hid: remove redundant set_bit() call
authorMichał Kępień <kernel@kempniu.pl>
Fri, 24 Feb 2017 10:33:09 +0000 (11:33 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:57:12 +0000 (22:57 -0700)
Remove redundant set_bit() call for KEY_RFKILL as it is already made by
sparse_keymap_setup() due to KEY_RFKILL being assigned to event code 8
in intel_hid_keymap.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Alex Hung <alex.hung@canonical.com>
drivers/platform/x86/intel-hid.c

index b17f33b832c21d63ba1359bd1520bab5258828c9..5eab31659cbaeebbfdc84eecdf429c162c78f36a 100644 (file)
@@ -155,7 +155,6 @@ static int intel_hid_input_setup(struct platform_device *device)
        priv->input_dev->dev.parent = &device->dev;
        priv->input_dev->name = "Intel HID events";
        priv->input_dev->id.bustype = BUS_HOST;
-       set_bit(KEY_RFKILL, priv->input_dev->keybit);
 
        return input_register_device(priv->input_dev);
 }