x86/apic: Modernize the pending interrupt code
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Thu, 1 Mar 2018 05:59:29 +0000 (13:59 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 1 Mar 2018 09:12:20 +0000 (10:12 +0100)
commit3ea9e7ae1a2038b9fdff729861c9b4af0087024f
treed4b124281b765ebe4be3a0d9dadd05069e9ae6ff
parent9b217f33017715903d0956dfc58f82d2a2d00e63
x86/apic: Modernize the pending interrupt code

The pending interrupt check code is old, update the following:

  - Use for_each_set_bit() instead of open coding it
  - Replace printk() with pr_err()
  - Get rid of printk line breaks
  - Make curly braces balanced

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: bhe@redhat.com
Cc: ebiederm@xmission.com
Link: https://lkml.kernel.org/r/20180301055930.2396-3-douly.fnst@cn.fujitsu.com
arch/x86/kernel/apic/apic.c