We've asserted fsp!=NULL in the caller
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
"allocation size to %.0f\n", smb_fname_str_dbg(smb_fname),
(double)allocation_size));
- if (fsp &&
- !fsp->fsp_flags.is_pathref &&
- fsp_get_io_fd(fsp) != -1)
- {
+ if (!fsp->fsp_flags.is_pathref && (fsp_get_io_fd(fsp) != -1)) {
/* Open file handle. */
status = check_any_access_fsp(fsp, FILE_WRITE_DATA);
if (!NT_STATUS_IS_OK(status)) {