mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
NFSD: Remove a never-true comparison
fh_size is an unsigned int, thus it can never be less than 0.
Fixes: d8b26071e6
("NFSD: simplify struct nfsfh")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
d08bf5ea64
commit
da4f777e62
1 changed files with 1 additions and 1 deletions
|
@ -766,7 +766,7 @@ char * SVCFH_fmt(struct svc_fh *fhp)
|
|||
struct knfsd_fh *fh = &fhp->fh_handle;
|
||||
static char buf[2+1+1+64*3+1];
|
||||
|
||||
if (fh->fh_size < 0 || fh->fh_size> 64)
|
||||
if (fh->fh_size > 64)
|
||||
return "bad-fh";
|
||||
sprintf(buf, "%d: %*ph", fh->fh_size, fh->fh_size, fh->fh_raw);
|
||||
return buf;
|
||||
|
|
Loading…
Add table
Reference in a new issue