genirq: No need to mask non trigger mode flags before __irq_set_trigger()
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Tue, 19 Jul 2016 09:54:08 +0000 (15:54 +0600)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 6 Sep 2016 10:14:12 +0000 (12:14 +0200)
commit00b992deaa08495ab958da5950c9ebbba27d0ddc
tree656ac41e2df2a59485dcdeb89b24445c4d6189c4
parent545d5d657b720e9c4dc773265bb7e9d88e34b269
genirq: No need to mask non trigger mode flags before __irq_set_trigger()

Some callers of __irq_set_trigger() masks all flags except trigger mode
flags. This is unnecessary, ase __irq_set_trigger() already does this
before usage of flags.

[ tglx: Moved the flag mask and adjusted comment. Removed the hunk in
   enable_percpu_irq() as it is required there ]

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Link: http://lkml.kernel.org/r/20160719095408.13778-1-kuleshovmail@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/chip.c
kernel/irq/manage.c