Browse Source

sata_fsl: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.

Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Syam Sidhardhan 12 years ago
parent
commit
c99cc9a2f1
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/ata/sata_fsl.c

+ 1 - 2
drivers/ata/sata_fsl.c

@@ -1511,8 +1511,7 @@ error_exit_with_cleanup:
 
 	if (hcr_base)
 		iounmap(hcr_base);
-	if (host_priv)
-		kfree(host_priv);
+	kfree(host_priv);
 
 	return retval;
 }