diff mbox series

[-next] nfsd: fix comparison to bool warning

Message ID 20200911041014.120723-1-zhengbin13@huawei.com
State New
Headers show
Series [-next] nfsd: fix comparison to bool warning | expand

Commit Message

Zheng Bin Sept. 11, 2020, 4:10 a.m. UTC
Fixes coccicheck warning:

fs/nfsd/nfs4proc.c:3234:5-29: WARNING: Comparison to bool

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
---
 fs/nfsd/nfs4proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.26.0.106.g9fadedd
diff mbox series

Patch

diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index eaf50eafa935..63e5a4844d8c 100644
--- 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;