projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efda332
)
sata_fsl: Remove redundant NULL check before kfree
author
Syam Sidhardhan
<syamsidhardh@gmail.com>
Sun, 24 Feb 2013 23:14:07 +0000
(
04:44
+0530)
committer
Jeff Garzik
<jgarzik@redhat.com>
Mon, 4 Mar 2013 22:11:54 +0000
(17:11 -0500)
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>
drivers/ata/sata_fsl.c
patch
|
blob
|
history
diff --git
a/drivers/ata/sata_fsl.c
b/drivers/ata/sata_fsl.c
index 124b2c1d9c0b020255870dec161d41626562fcca..608f82fed632be1738c019f6fcfac6117b657a8d 100644
(file)
--- 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;
}