From patchwork Sun Feb 24 23:14:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: sata_fsl: Remove redundant NULL check before kfree Date: Sun, 24 Feb 2013 13:14:07 -0000 From: Syam Sidhardhan X-Patchwork-Id: 222805 Message-Id: <1361747647-29539-1-git-send-email-s.syam@samsung.com> To: linux-ide@vger.kernel.org Cc: syamsidhardh@gmail.com, jgarzik@pobox.com kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan --- drivers/ata/sata_fsl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index 124b2c1..608f82f 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; }