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>
此提交包含在:
Markus Elfring
2015-06-27 18:12:14 +02:00
提交者 Corey Minyard
父節點 fedb25ea90
當前提交 a7930899ca

查看文件

@@ -2775,9 +2775,7 @@ static int ipmi_remove(struct platform_device *dev)
{
struct smi_info *info = dev_get_drvdata(&dev->dev);
if (info)
cleanup_one_si(info);
cleanup_one_si(info);
return 0;
}