diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-10-31 17:21:38 +0300 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2018-01-22 17:10:38 +0300 |
commit | e45af3d372f1d4339663dcbef28665f5b15d448c (patch) | |
tree | cf046da3b351959a2b4f9388088f8e4ad61f27c4 /drivers/char/ipmi | |
parent | e749d328b0b450aa78d562fa26a0cd8872325dd9 (diff) | |
download | linux-e45af3d372f1d4339663dcbef28665f5b15d448c.tar.xz |
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>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_ssif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index 3cfaec728604..f929e72bdac8 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c @@ -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); |