mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08: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:
parent
efda332cb6
commit
c99cc9a2f1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user