diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-06-27 12:12:14 -0400 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2015-09-03 16:02:25 -0400 |
commit | a7930899ca0082a33350b253c6ed34f67255f98e (patch) | |
tree | af9694080651d95823953b29d4a14a32ff65f5dd | |
parent | fedb25ea903d3520b6cff00c41740a892cf6bc0e (diff) |
ipmi: Delete an unnecessary check before the function call "cleanup_one_si"
The cleanup_one_si() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index b1fdbf78da9b..4387bd6de2ca 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2775,9 +2775,7 @@ static int ipmi_remove(struct platform_device *dev) | |||
2775 | { | 2775 | { |
2776 | struct smi_info *info = dev_get_drvdata(&dev->dev); | 2776 | struct smi_info *info = dev_get_drvdata(&dev->dev); |
2777 | 2777 | ||
2778 | if (info) | 2778 | cleanup_one_si(info); |
2779 | cleanup_one_si(info); | ||
2780 | |||
2781 | return 0; | 2779 | return 0; |
2782 | } | 2780 | } |
2783 | 2781 | ||