diff options
author | Ivan Abramov <i.abramov@mt-integration.ru> | 2025-03-10 17:04:58 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-03-24 17:45:07 +0300 |
commit | f089ee00f205a6e487291f347ea99bf26370643a (patch) | |
tree | 67b7ba18b30efd81b6606c3e255df7d53542a48a /lib/test_fortify/write_overflow-strncpy.c | |
parent | 9fb2e20e4f6acade2807d35cea3318786866d08d (diff) | |
download | linux-f089ee00f205a6e487291f347ea99bf26370643a.tar.xz |
smb: client: Remove redundant check in smb2_is_path_accessible()
There is an unnecessary NULL check of cifs_sb in smb2_is_path_accessible(),
since cifs_sb is dereferenced multiple times prior to it.
It seems that there is no need to introduce any NULL checks of cifs_sb,
since arguments of smb2_is_path_accessible() are assumed to be non-NULL.
Therefore, this redundant check can be removed.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions