OSDN Git Service

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)
commit9ccfc23a72b669678e4c9ccba98d3d91db1c04cf
treefe73fbd69d1a713717812d2a7bbe8f91e09e26eb
parentbbdf6cf56c88845fb0b713cbf5c6623c53fe40d8
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