diff options
author | Michał Kępień <kernel@kempniu.pl> | 2017-02-24 11:33:09 +0100 |
---|---|---|
committer | Darren Hart <dvhart@infradead.org> | 2017-03-14 22:57:12 -0700 |
commit | faf667efdbe5f6c8d6962aab8680680838678097 (patch) | |
tree | 6580b9ba4fa480303a9c1e4a46e78584343fc5c2 /drivers/platform | |
parent | 175cc9b72fb5ca65dfb79e7c2500304476486717 (diff) |
platform/x86: intel-hid: remove redundant set_bit() call
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/intel-hid.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c index b17f33b832c2..5eab31659cba 100644 --- a/drivers/platform/x86/intel-hid.c +++ b/drivers/platform/x86/intel-hid.c @@ -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); } |