Commit 5d7ca35a authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Trond Myklebust

nfs: Remove redundant NULL check upon kfree()

Signed-off-by: default avatarDavidlohr Bueso <dave@gnu.org>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 9b00c643
...@@ -2273,8 +2273,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct ...@@ -2273,8 +2273,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct
out: out:
if (page) if (page)
__free_page(page); __free_page(page);
if (locations) kfree(locations);
kfree(locations);
return status; return status;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment