diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-02-24 19:25:22 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-02-24 21:50:08 +0100 |
commit | 05a45a2db42543c5f1a32e08f545aebbd7cb4790 (patch) | |
tree | 775a5d8620ee7dfafb96bdf6016f2355940625f9 /net/sunrpc | |
parent | nfsd: remove superfluous KERN_INFO (diff) | |
download | linux-05a45a2db42543c5f1a32e08f545aebbd7cb4790.tar.xz linux-05a45a2db42543c5f1a32e08f545aebbd7cb4790.zip |
sunrpc: turn bitfield flags in svc_version into bools
It's just simpler to read this way, IMO. Also, no need to explicitly
set vs_hidden to false in the nfsacl ones.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 75f290bddca1..85bcdea67a3f 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -385,7 +385,7 @@ static int svc_uses_rpcbind(struct svc_serv *serv) for (i = 0; i < progp->pg_nvers; i++) { if (progp->pg_vers[i] == NULL) continue; - if (progp->pg_vers[i]->vs_hidden == 0) + if (!progp->pg_vers[i]->vs_hidden) return 1; } } |