From 1a967f10e13dcc0bab92b706713844bc1a970882 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 15 Aug 2014 23:54:08 +0200 Subject: [PATCH] Fix comparison sign --- klgd_ff_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klgd_ff_plugin.c b/klgd_ff_plugin.c index 7409fa6..11dd697 100644 --- a/klgd_ff_plugin.c +++ b/klgd_ff_plugin.c @@ -304,7 +304,7 @@ int ffpl_init_plugin(struct klgd_plugin **plugin, struct input_dev *dev, const s *plugin = self; set_bit(FF_GAIN, dev->ffbit); - for (idx = 0; idx < (FF_EFFECT_MAX - FF_EFFECT_MIN); idx++) { + for (idx = 0; idx <= (FF_EFFECT_MAX - FF_EFFECT_MIN); idx++) { if (test_bit(idx, &priv->supported_effects)) { printk(KERN_NOTICE "KLGDFF: Has bit %d, effect type %d\n", idx, FF_EFFECT_MIN + idx); input_set_capability(dev, EV_FF, idx + FF_EFFECT_MIN); -- 2.43.5