瀏覽代碼

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>
Corey Minyard 7 年之前
父節點
當前提交
8d17929ad5
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/char/ipmi/ipmi_msghandler.c

+ 1 - 2
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);