genirq: Introduce irq_do_set_affinity() to reduce duplicated code
authorJiang Liu <liuj97@gmail.com>
Fri, 30 Mar 2012 15:11:34 +0000 (23:11 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 May 2012 20:36:40 +0000 (22:36 +0200)
commit818b0f3bfb236ae66cac3ff38e86b9e47f24b7aa
tree711e4396d69f1127cd723b00ad348c47bd433a2b
parent23812b9d9e497580d38c62ebdc6f308733b0a32a
genirq: Introduce irq_do_set_affinity() to reduce duplicated code

All invocations of chip->irq_set_affinity() are doing the same return
value checks. Let them all use a common function.

[ tglx: removed the silly likely while at it ]

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Jiang Liu <liuj97@gmail.com>
Cc: Keping Chen <chenkeping@huawei.com>
Link: http://lkml.kernel.org/r/1333120296-13563-3-git-send-email-jiang.liu@huawei.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/internals.h
kernel/irq/manage.c
kernel/irq/migration.c