Skip to content

Commit

Permalink
nfs: Remove redundant NULL check upon kfree()
Browse files Browse the repository at this point in the history
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Davidlohr Bueso authored and Trond Myklebust committed Aug 11, 2010
1 parent 9b00c64 commit 5d7ca35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2273,8 +2273,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct
out:
if (page)
__free_page(page);
if (locations)
kfree(locations);
kfree(locations);
return status;
}

Expand Down

0 comments on commit 5d7ca35

Please sign in to comment.