Commit 9a2ac339 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] nfsd4: remove unnecessary check in find_delegation_stateid

We would have oopsed some time ago if either of these parameters were NULL.
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 79a1c2d2
......@@ -2450,8 +2450,6 @@ find_delegation_stateid(struct inode *ino, stateid_t *stid)
stid->si_boot, stid->si_stateownerid,
stid->si_fileid, stid->si_generation);
if(!ino || !stid)
return NULL;
st_id = stid->si_stateownerid;
fi_hashval = file_hashval(ino);
if (find_file(fi_hashval, ino, &fp)) {
......
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