1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

libcli/smb: clang: Fix 'value stored to 'p' is never read'

Fixes:

libcli/smb/smb1cli_session.c:226:2: warning: Value stored to 'p' is never read <--[clang]
        p += ret;
        ^    ~~~
libcli/smb/smb1cli_session.c:517:2: warning: Value stored to 'p' is never read <--[clang]
        p += ret;
        ^    ~~~
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Noel Power 2019-07-08 15:16:57 +00:00 committed by Gary Lockyer
parent f004f8a234
commit 71943ab53e

View File

@ -223,7 +223,6 @@ static void smb1cli_session_setup_lm21_done(struct tevent_req *subreq)
if (tevent_req_nterror(req, status)) {
return;
}
p += ret;
smb1cli_session_set_id(state->session, state->out_session_id);
smb1cli_session_set_action(state->session, state->out_action);
@ -514,7 +513,6 @@ static void smb1cli_session_setup_nt1_done(struct tevent_req *subreq)
if (tevent_req_nterror(req, status)) {
return;
}
p += ret;
smb1cli_session_set_id(state->session, state->out_session_id);
smb1cli_session_set_action(state->session, state->out_action);