Skip to content

Commit

Permalink
sata_fsl: Remove redundant NULL check before kfree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Syam Sidhardhan authored and Jeff Garzik committed Mar 4, 2013
1 parent efda332 commit c99cc9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ata/sata_fsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c99cc9a

Please sign in to comment.