mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3:smbd: Covscan: remove dead code
Covscan: source3/smbd/files.c:575: check_after_deref: Null-checking "fsp" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Signed-off-by: Pavel Filipenský <pfilipen@redhat.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat May 14 04:41:57 UTC 2022 on sn-devel-184
This commit is contained in:
parent
2628859490
commit
d3c678233c
@ -598,9 +598,6 @@ fail:
|
||||
smb_fname_str_dbg(smb_fname),
|
||||
nt_errstr(status));
|
||||
|
||||
if (fsp == NULL) {
|
||||
return status;
|
||||
}
|
||||
if (fsp_is_alternate_stream(fsp)) {
|
||||
struct files_struct *tmp_base_fsp = fsp->base_fsp;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user