mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
ipmi_ssif: Remove duplicate NULL check
Since i2c_unregister_device() became NULL-aware we may remove duplicate NULL check. Cc: Corey Minyard <minyard@acm.org> Cc: openipmi-developer@lists.sourceforge.net Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
e749d328b0
commit
e45af3d372
@ -2071,8 +2071,7 @@ static int ssif_platform_remove(struct platform_device *dev)
|
||||
return 0;
|
||||
|
||||
mutex_lock(&ssif_infos_mutex);
|
||||
if (addr_info->client)
|
||||
i2c_unregister_device(addr_info->client);
|
||||
i2c_unregister_device(addr_info->client);
|
||||
|
||||
list_del(&addr_info->link);
|
||||
kfree(addr_info);
|
||||
|
Loading…
Reference in New Issue
Block a user