}
}
-int ipmi_unregister_smi(struct ipmi_smi *intf)
+void ipmi_unregister_smi(struct ipmi_smi *intf)
{
struct ipmi_smi_watcher *w;
int intf_num = intf->intf_num, index;
cleanup_srcu_struct(&intf->users_srcu);
kref_put(&intf->refcount, intf_free);
-
- return 0;
}
EXPORT_SYMBOL(ipmi_unregister_smi);
static void shutdown_one_si(struct smi_info *smi_info)
{
- int rv;
ipmi_smi_t intf = smi_info->intf;
if (!intf)
return;
smi_info->intf = NULL;
- rv = ipmi_unregister_smi(intf);
- if (rv)
- pr_err(PFX "Unable to unregister device: errno=%d\n", rv);
+ ipmi_unregister_smi(intf);
}
static void cleanup_one_si(struct smi_info *smi_info)
*/
intf = ssif_info->intf;
ssif_info->intf = NULL;
- rv = ipmi_unregister_smi(intf);
- if (rv)
- pr_err(PFX "Unable to unregister device: errno=%d\n", rv);
+ ipmi_unregister_smi(intf);
list_for_each_entry(addr_info, &ssif_infos, link) {
if (addr_info->client == client) {
* Remove a low-level interface from the IPMI driver. This will
* return an error if the interface is still in use by a user.
*/
-int ipmi_unregister_smi(ipmi_smi_t intf);
+void ipmi_unregister_smi(ipmi_smi_t intf);
/*
* The lower layer reports received messages through this interface.