mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 18:42:14 -04:00
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>
This commit is contained in:
committed by
Jeff Garzik
parent
efda332cb6
commit
c99cc9a2f1
@@ -1511,8 +1511,7 @@ static int sata_fsl_probe(struct platform_device *ofdev)
|
||||
|
||||
if (hcr_base)
|
||||
iounmap(hcr_base);
|
||||
if (host_priv)
|
||||
kfree(host_priv);
|
||||
kfree(host_priv);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user