]> git.baikalelectronics.ru Git - kernel.git/commit
Input: add guarding parentheses to macros
authorSimon Budig <simon.budig@kernelconcepts.de>
Tue, 5 Jul 2011 02:56:01 +0000 (19:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 Jul 2011 03:03:40 +0000 (20:03 -0700)
commit7e00c9e9de1279574b14458f56d50cfaf1cee4f4
tree4d6ddf8d13638ea0cb8461b21c9b35860bf3037a
parent5fda15458b8f90c403268bb94483d32e9f3934c1
Input: add guarding parentheses to macros

Put parentheses around macro argument uses. This avoids pitfalls
for the programmer, where the argument expansion does not give the
expected result, for example:

ioctl (fd, EVIOCGABS (have_mt ? ABS_MT_POSITION_X : ABS_X), &abs);

Signed-off-by: Simon Budig <simon.budig@kernelconcepts.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/input.h