ipmi: fix platform return check
authorCorey Minyard <minyard@acm.org>
Tue, 21 Apr 2009 19:24:02 +0000 (12:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Apr 2009 20:41:48 +0000 (13:41 -0700)
commit8b32b5d0dca2f5ab632e8bedcd57fe4c109c13fe
treef9a4aa93b52d4bb6a326c56974d186788e654cdd
parent4614e6adafa2c5e6c3a9c245af2807fa7bc5117a
ipmi: fix platform return check

The wrong return value is being tested when allocating a platform device
in the IPMI SI code.  Check the right value.

Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_si_intf.c