nfsd4: setclientid remove unnecessary terms from a logical expression
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 19 May 2012 01:34:55 +0000 (21:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:29:58 +0000 (20:29 -0400)
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index c743cdf..7bb4e88 100644 (file)
@@ -2344,9 +2344,8 @@ nfsd4_setclientid_confirm(struct svc_rqst *rqstp,
                        nfsd4_probe_callback(conf);
                        status = nfs_ok;
                }
-       } else if ((!conf || (conf && !same_verf(&conf->cl_confirm, &confirm)))
-           && (!unconf || (unconf && !same_verf(&unconf->cl_confirm,
-                                                               &confirm)))) {
+       } else if ((!conf || !same_verf(&conf->cl_confirm, &confirm))
+           && (!unconf || !same_verf(&unconf->cl_confirm, &confirm))) {
                /*
                 * RFC 3530 14.2.34 CASE 4:
                 * Client probably hasn't noticed that we rebooted yet.