Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faf667ef authored by Michał Kępień's avatar Michał Kępień Committed by Darren Hart
Browse files

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: default avatarMichał Kępień <kernel@kempniu.pl>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: default avatarAlex Hung <alex.hung@canonical.com>
parent 175cc9b7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
}