x86/mce: don't use [delayed_]work_pending()
authorTejun Heo <tj@kernel.org>
Sat, 22 Dec 2012 01:57:05 +0000 (17:57 -0800)
committerTejun Heo <tj@kernel.org>
Fri, 28 Dec 2012 21:40:16 +0000 (13:40 -0800)
commit4d899be584d4b4c5d6b49d655176b25cebf6ff1a
tree690b5ff0a8c1c334f3932b6ef22b9684b5ef8b6b
parentba0c96cd9a361693b0bae409510d614dc0e26d0f
x86/mce: don't use [delayed_]work_pending()

There's no need to test whether a (delayed) work item in pending
before queueing, flushing or cancelling it.  Most uses are unnecessary
and quite a few of them are buggy.

Remove unnecessary pending tests from x86/mce.  Only compile tested.

v2: Local var work removed from mce_schedule_work() as suggested by
    Borislav.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Borislav Petkov <bp@alien8.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac@vger.kernel.org
arch/x86/kernel/cpu/mcheck/mce.c