ipmi: Rework BMC registration
authorCorey Minyard <cminyard@mvista.com>
Fri, 1 Sep 2017 19:37:07 +0000 (14:37 -0500)
committerCorey Minyard <cminyard@mvista.com>
Wed, 27 Sep 2017 21:03:45 +0000 (16:03 -0500)
commita2cb600fa22a877df48e1a9372ac5f02680c1ee3
tree205322e64001d3806ebcc046dbdfe6430d59dd6f
parent7e030d6dff713250c7dcfb543cad2addaf479b0e
ipmi: Rework BMC registration

There was a certain error case where the BMC wouldn't be deregistered
like it should be.  Rework the BMC registration to make calling
ipmi_bmc_unregister() ok even if it's not registered and to clean up
the error handling for ipmi_bmc_register().

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c