From: Syam Sidhardhan Date: Sun, 24 Feb 2013 23:14:07 +0000 (+0530) Subject: sata_fsl: Remove redundant NULL check before kfree X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=c99cc9a2f19c29108ddb2e1ceb6f3baa536357d2;p=deliverable%2Flinux.git sata_fsl: Remove redundant NULL check before kfree kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index 124b2c1d9c0b..608f82fed632 100644 --- a/drivers/ata/sata_fsl.c +++ b/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; }