diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2013-02-25 00:14:07 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2013-03-04 23:11:54 +0100 |
commit | c99cc9a2f19c29108ddb2e1ceb6f3baa536357d2 (patch) | |
tree | c1aa4c77e02f652356d5d697e5106f165fc01b74 /drivers/ata/sata_fsl.c | |
parent | ahci: Add Device IDs for Intel Wellsburg PCH (diff) | |
download | linux-c99cc9a2f19c29108ddb2e1ceb6f3baa536357d2.tar.xz linux-c99cc9a2f19c29108ddb2e1ceb6f3baa536357d2.zip |
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>
Diffstat (limited to 'drivers/ata/sata_fsl.c')
-rw-r--r-- | drivers/ata/sata_fsl.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |