summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2017-10-07 16:02:21 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-11-17 16:43:43 -0500
commit6089dd0d731028531fb1148be9fd33274ff90da4 (patch)
treee23db00cc4e512db34c7dd09568436de449b8ea6 /fs/nfs/nfs4client.c
parent3944369db701f075092357b511fd9f5755771585 (diff)
downloadtalos-obmc-linux-6089dd0d731028531fb1148be9fd33274ff90da4.tar.gz
talos-obmc-linux-6089dd0d731028531fb1148be9fd33274ff90da4.zip
NFS: Fix bool initialization/comparison
Bool initializations should use true and false. Bool tests don't need comparisons. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r--fs/nfs/nfs4client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index 31b5bc0f10a4..12bbab0becb4 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -793,7 +793,7 @@ nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr,
spin_lock(&nn->nfs_client_lock);
list_for_each_entry(clp, &nn->nfs_client_list, cl_share_link) {
- if (nfs4_cb_match_client(addr, clp, minorversion) == false)
+ if (!nfs4_cb_match_client(addr, clp, minorversion))
continue;
if (!nfs4_has_session(clp))
OpenPOWER on IntegriCloud