diff options
author | 2021-05-26 15:26:33 +0900 | |
---|---|---|
committer | 2021-05-26 18:12:00 +0900 | |
commit | fd43cbbe0af5e528ec7e1f85e6e942d1b77ff781 (patch) | |
tree | c1183699b1b08406bc05aedb765d0d88d9b39bad | |
parent | cifsd: move fips_enabled check before the str_to_key() (diff) | |
download | wireguard-linux-fd43cbbe0af5e528ec7e1f85e6e942d1b77ff781.tar.xz wireguard-linux-fd43cbbe0af5e528ec7e1f85e6e942d1b77ff781.zip |
cifsd: just return smbhash() instead of using rc return value
Just return smbhash() instead of using rc return value.
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r-- | fs/cifsd/auth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifsd/auth.c b/fs/cifsd/auth.c index 9263c9ce2dd2..ab698093f728 100644 --- a/fs/cifsd/auth.c +++ b/fs/cifsd/auth.c @@ -115,8 +115,7 @@ static int ksmbd_enc_p24(unsigned char *p21, const unsigned char *c8, unsigned c rc = smbhash(p24 + 8, c8, p21 + 7); if (rc) return rc; - rc = smbhash(p24 + 16, c8, p21 + 14); - return rc; + return smbhash(p24 + 16, c8, p21 + 14); } /* produce a md4 message digest from data of length n bytes */ |