ipmi_ssif: Remove duplicate NULL check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 31 Oct 2017 14:21:38 +0000 (16:21 +0200)
committerCorey Minyard <cminyard@mvista.com>
Mon, 22 Jan 2018 14:10:38 +0000 (08:10 -0600)
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>
drivers/char/ipmi/ipmi_ssif.c

index 3cfaec728604d1956c8e8c9e21922e0bee9349c6..f929e72bdac8b1d512626ace5cdb7d3fdcc98dec 100644 (file)
@@ -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);