diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-02-24 13:25:22 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-02-24 15:50:08 -0500 |
commit | 05a45a2db42543c5f1a32e08f545aebbd7cb4790 (patch) | |
tree | 775a5d8620ee7dfafb96bdf6016f2355940625f9 /net | |
parent | 4ab495bfe58dfe6b346ae3949a406163152919c8 (diff) |
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')
-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; } } |