From: Corey Minyard Date: Fri, 6 Apr 2018 03:07:33 +0000 (-0500) Subject: ipmi: Remove condition on interface shutdown X-Git-Tag: v4.18-rc1~121^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d17929ad50f2c9d4cf55e8f3eb249a60f429a0d;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index a27b50ac2b7f3..7ddadab65f33c 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);