mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +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
@ -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…
Reference in New Issue
Block a user