projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aff7d0
)
nfsd: fix comparison to bool warning
author
Zheng Bin
<zhengbin13@huawei.com>
Fri, 11 Sep 2020 04:10:14 +0000
(12:10 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Fri, 25 Sep 2020 22:01:28 +0000
(18:01 -0400)
Fixes coccicheck warning:
fs/nfsd/nfs4proc.c:3234:5-29: WARNING: Comparison to bool
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4proc.c
b/fs/nfsd/nfs4proc.c
index eaf50eafa93596f791b2461cd8de5cbdca8436f5..63e5a4844d8c233e2f6e8f5a2f645ee335ba915b 100644
(file)
--- a/
fs/nfsd/nfs4proc.c
+++ b/
fs/nfsd/nfs4proc.c
@@
-3231,7
+3231,7
@@
bool nfsd4_spo_must_allow(struct svc_rqst *rqstp)
if (!cstate->minorversion)
return false;
- if (cstate->spo_must_allowed
== true
)
+ if (cstate->spo_must_allowed)
return true;
opiter = resp->opcnt;