summaryrefslogtreecommitdiff
path: root/fs/nfsd
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-12-25 06:19:36 +0300
committerJ. Bruce Fields <bfields@redhat.com>2020-01-03 19:21:12 +0300
commite44b4bf2648ef05ff1cde9f354079bce58a5ebde (patch)
tree97e5d02e6fb57b0f07b98cf5c6afdf68d8b0a445 /fs/nfsd
parent500c248171408b80a6c87d278085ad1c8be762c2 (diff)
downloadlinux-e44b4bf2648ef05ff1cde9f354079bce58a5ebde.tar.xz
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: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfssvc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index c720097a9149..7900f3494ecb 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -397,7 +397,7 @@ static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cre
ret = lockd_up(net, cred);
if (ret)
goto out_socks;
- nn->lockd_up = 1;
+ nn->lockd_up = true;
}
ret = nfs4_state_start_net(net);
@@ -410,7 +410,7 @@ static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cre
out_lockd:
if (nn->lockd_up) {
lockd_down(net);
- nn->lockd_up = 0;
+ nn->lockd_up = false;
}
out_socks:
nfsd_shutdown_generic();
@@ -425,7 +425,7 @@ static void nfsd_shutdown_net(struct net *net)
nfs4_state_shutdown_net(net);
if (nn->lockd_up) {
lockd_down(net);
- nn->lockd_up = 0;
+ nn->lockd_up = false;
}
nn->nfsd_net_up = false;
nfsd_shutdown_generic();