HID: hid-lg: Only one of LG_FF flags can be set for a given device
Only one of LG_FF flags can be set for a given device.
Signed-off-by: Michal Malý <madcatxster@devoid-pointer.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c
index d5022b3..429340d 100644
--- a/drivers/hid/hid-lg.c
+++ b/drivers/hid/hid-lg.c
@@ -714,11 +714,11 @@
if (drv_data->quirks & LG_FF)
ret = lgff_init(hdev);
- if (drv_data->quirks & LG_FF2)
+ else if (drv_data->quirks & LG_FF2)
ret = lg2ff_init(hdev);
- if (drv_data->quirks & LG_FF3)
+ else if (drv_data->quirks & LG_FF3)
ret = lg3ff_init(hdev);
- if (drv_data->quirks & LG_FF4)
+ else if (drv_data->quirks & LG_FF4)
ret = lg4ff_init(hdev);
if (ret)