]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: remove unnecessary copies of tcon->crfid.fid
authorMuhammad Usama Anjum <musamaanjum@gmail.com>
Thu, 15 Apr 2021 15:24:09 +0000 (20:24 +0500)
committerSteve French <stfrench@microsoft.com>
Sun, 25 Apr 2021 21:28:24 +0000 (16:28 -0500)
commitf9d6968d8ecbbd75565f0ea4b0d90fe6fe0ad915
tree351068401d470806f507a0e77b66fe23f18c9712
parent6ac08885aea3f3aabe21b0fbdf72f86585b7ad4f
cifs: remove unnecessary copies of tcon->crfid.fid

pfid is being set to tcon->crfid.fid and they are copied in each other
multiple times. Remove the memcopy between same pointers - memory
locations.

Addresses-Coverity: ("Overlapped copy")
Fixes: 02f695d5008d ("cifs: return cached_fid from open_shroot")
Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c