Skip to content

Commit e45af3d

Browse files
andy-shevcminyard
authored andcommitted
ipmi_ssif: Remove duplicate NULL check
Since i2c_unregister_device() became NULL-aware we may remove duplicate NULL check. Cc: Corey Minyard <[email protected]> Cc: [email protected] Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Corey Minyard <[email protected]>
1 parent e749d32 commit e45af3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/char/ipmi/ipmi_ssif.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,8 +2071,7 @@ static int ssif_platform_remove(struct platform_device *dev)
20712071
return 0;
20722072

20732073
mutex_lock(&ssif_infos_mutex);
2074-
if (addr_info->client)
2075-
i2c_unregister_device(addr_info->client);
2074+
i2c_unregister_device(addr_info->client);
20762075

20772076
list_del(&addr_info->link);
20782077
kfree(addr_info);

0 commit comments

Comments
 (0)