From: Namjae Jeon Date: Wed, 26 May 2021 06:26:33 +0000 (+0900) Subject: cifsd: just return smbhash() instead of using rc return value X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fd43cbbe0af5e528ec7e1f85e6e942d1b77ff781;p=linux.git cifsd: just return smbhash() instead of using rc return value Just return smbhash() instead of using rc return value. Reviewed-by: Dan Carpenter Signed-off-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/cifsd/auth.c b/fs/cifsd/auth.c index 9263c9ce2dd2e..ab698093f7283 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 */