]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: don't set rc when used and unneeded in query_info_compound
authorSteve French <stfrench@microsoft.com>
Tue, 24 May 2022 01:54:04 +0000 (20:54 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 24 May 2022 02:02:45 +0000 (21:02 -0500)
commit42ae9d6b2ec2e03415a2ddeec332811e4019d847
treefe73fbd69d1a713717812d2a7bbe8f91e09e26eb
parent52e26eb6ade0721a1e6b103c037d78a810e9d09e
smb3: don't set rc when used and unneeded in query_info_compound

rc is not checked so should not be set coming back from open_cached_dir
(the cfid pointer is checked instead to see if open_cached_dir failed)

Addresses-Coverity: 1518021 ("Code maintainability issues  (UNUSED_VALUE)")
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c