aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fs/cifsd/auth.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/cifsd/auth.c b/fs/cifsd/auth.c
index 092db15e4234..7771429f55a4 100644
--- a/fs/cifsd/auth.c
+++ b/fs/cifsd/auth.c
@@ -351,12 +351,11 @@ int ksmbd_auth_ntlm(struct ksmbd_session *sess, char *pw_buf)
if (strncmp(pw_buf, key, CIFS_AUTH_RESP_SIZE) != 0) {
ksmbd_debug(AUTH, "ntlmv1 authentication failed\n");
- rc = -EINVAL;
- } else {
- ksmbd_debug(AUTH, "ntlmv1 authentication pass\n");
+ return -EINVAL;
}
- return rc;
+ ksmbd_debug(AUTH, "ntlmv1 authentication pass\n");
+ return 0;
}
/**