Commit e44b4bf2 authored by zhengbin's avatar zhengbin Committed by J. Bruce Fields

nfsd: use true,false for bool variable in nfssvc.c

Fixes coccicheck warning:

fs/nfsd/nfssvc.c:394:2-14: WARNING: Assignment of 0/1 to bool variable
fs/nfsd/nfssvc.c:407:2-14: WARNING: Assignment of 0/1 to bool variable
fs/nfsd/nfssvc.c:422:2-14: WARNING: Assignment of 0/1 to bool variable
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 500c2481
...@@ -397,7 +397,7 @@ static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cre ...@@ -397,7 +397,7 @@ static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cre
ret = lockd_up(net, cred); ret = lockd_up(net, cred);
if (ret) if (ret)
goto out_socks; goto out_socks;
nn->lockd_up = 1; nn->lockd_up = true;
} }
ret = nfs4_state_start_net(net); ret = nfs4_state_start_net(net);
...@@ -410,7 +410,7 @@ static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cre ...@@ -410,7 +410,7 @@ static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cre
out_lockd: out_lockd:
if (nn->lockd_up) { if (nn->lockd_up) {
lockd_down(net); lockd_down(net);
nn->lockd_up = 0; nn->lockd_up = false;
} }
out_socks: out_socks:
nfsd_shutdown_generic(); nfsd_shutdown_generic();
...@@ -425,7 +425,7 @@ static void nfsd_shutdown_net(struct net *net) ...@@ -425,7 +425,7 @@ static void nfsd_shutdown_net(struct net *net)
nfs4_state_shutdown_net(net); nfs4_state_shutdown_net(net);
if (nn->lockd_up) { if (nn->lockd_up) {
lockd_down(net); lockd_down(net);
nn->lockd_up = 0; nn->lockd_up = false;
} }
nn->nfsd_net_up = false; nn->nfsd_net_up = false;
nfsd_shutdown_generic(); nfsd_shutdown_generic();
......
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