summaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi
diff options
context:
space:
mode:
authorCorey Minyard2018-04-06 05:07:33 +0200
committerCorey Minyard2018-04-18 17:23:01 +0200
commit8d17929ad50f2c9d4cf55e8f3eb249a60f429a0d (patch)
treec488ec12069b5ff53ae79efe986b0309e6287860 /drivers/char/ipmi
parentipmi_ssif: Convert over to a shutdown handler (diff)
downloadkernel-qcow2-linux-8d17929ad50f2c9d4cf55e8f3eb249a60f429a0d.tar.gz
kernel-qcow2-linux-8d17929ad50f2c9d4cf55e8f3eb249a60f429a0d.tar.xz
kernel-qcow2-linux-8d17929ad50f2c9d4cf55e8f3eb249a60f429a0d.zip
ipmi: Remove condition on interface shutdown
Now that the interfaces have shutdown handlers, this no longer needs to be conditional. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r--drivers/char/ipmi/ipmi_msghandler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
index a27b50ac2b7f..7ddadab65f33 100644
--- a/drivers/char/ipmi/ipmi_msghandler.c
+++ b/drivers/char/ipmi/ipmi_msghandler.c
@@ -3744,8 +3744,7 @@ int ipmi_unregister_smi(struct ipmi_smi *intf)
}
srcu_read_unlock(&intf->users_srcu, index);
- if (intf->handlers->shutdown)
- intf->handlers->shutdown(intf->send_info);
+ intf->handlers->shutdown(intf->send_info);
cleanup_smi_msgs(intf);