mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-19 05:24:11 +00:00
ksmbd: add missing assignments to ret on ndr_read_int64 read calls
Currently there are two ndr_read_int64 calls where ret is being checked for failure but ret is not being assigned a return value from the call. Static analyis is reporting the checks on ret as dead code. Fix this. Addresses-Coverity: ("Logical dead code") Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
303fff2b8c
commit
36bbeb3365
1 changed files with 2 additions and 2 deletions
|
@ -275,11 +275,11 @@ int ndr_decode_dos_attr(struct ndr *n, struct xattr_dos_attrib *da)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
ndr_read_int64(n, NULL);
|
||||
ret = ndr_read_int64(n, NULL);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ndr_read_int64(n, NULL);
|
||||
ret = ndr_read_int64(n, NULL);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue