Input: initialize device counter variables with -1
authorAniroop Mathur <aniroop.mathur@gmail.com>
Wed, 3 Dec 2014 22:27:42 +0000 (14:27 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Dec 2014 23:27:17 +0000 (15:27 -0800)
commit939ffb1712890ee22146d2dfc24adbc7da6afa84
tree32f55ccf440835f0c929b6c7b173ffd87e18f2c6
parent9c7d66fa9bb21ef89c6acdd0cf536eb84e760d8b
Input: initialize device counter variables with -1

Let's initialize atomic_t variables keeping track of number of various
devices created so far with -1 in order to avoid extra subtraction
operation.

Signed-off-by: Aniroop Mathur <aniroop.mathur@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/gameport/gameport.c
drivers/input/joystick/xpad.c
drivers/input/misc/ims-pcu.c
drivers/input/serio/serio.c
drivers/input/serio/serio_raw.c
This page took 0.026486 seconds and 5 git commands to generate.