summaryrefslogtreecommitdiff
path: root/drivers/char/ipmi/ipmi_msghandler.c
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-04-05 22:07:33 -0500
committerCorey Minyard <cminyard@mvista.com>2018-04-18 10:23:01 -0500
commit8d17929ad50f2c9d4cf55e8f3eb249a60f429a0d (patch)
treec488ec12069b5ff53ae79efe986b0309e6287860 /drivers/char/ipmi/ipmi_msghandler.c
parenta313dec6401f0ceaec77262b411d77c18aef27ee (diff)
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/ipmi_msghandler.c')
-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);