From: Michal MalĂ˝ Date: Fri, 15 Aug 2014 21:54:08 +0000 (+0200) Subject: Fix comparison sign X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=1a967f10e13dcc0bab92b706713844bc1a970882;p=KLGD_FF_plugin.git Fix comparison sign --- 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);