cifs: fix static checker warning

Remove unnecessary NULL check of oparam->cifs_sb when parsing symlink
error response as it's already set by all smb2_open_file() callers and
deferenced earlier.

This fixes below report:

fs/cifs/smb2file.c:126 smb2_open_file()
warn: variable dereferenced before check 'oparms->cifs_sb' (see line 112)

Link: https://lore.kernel.org/r/Y0kt42j2tdpYakRu@kili
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by

Paulo Alcantara and committed by
Steve French
a9e17d3d d7173623

+1 -1
+1 -1
fs/cifs/smb2file.c
··· 123 123 124 124 if (unlikely(!err_iov.iov_base || err_buftype == CIFS_NO_BUFFER)) 125 125 rc = -ENOMEM; 126 - else if (hdr->Status == STATUS_STOPPED_ON_SYMLINK && oparms->cifs_sb) { 126 + else if (hdr->Status == STATUS_STOPPED_ON_SYMLINK) { 127 127 rc = smb2_parse_symlink_response(oparms->cifs_sb, &err_iov, 128 128 &data->symlink_target); 129 129 if (!rc) {