Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7930899 authored by Markus Elfring's avatar Markus Elfring Committed by Corey Minyard
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent fedb25ea
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);

	return 0;
}