diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-27 09:08:17 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-25 07:25:45 +0100 |
commit | 4a0c2605ac5c28e8d0ee469b897df746d55e26f4 (patch) | |
tree | 66dbc6cf7b72fb0a9ec231b2fb03f2d51d6b8dd9 /source4/smb_server | |
parent | de9cd397a97a3eb494b1d5114415152f916fc5ee (diff) | |
download | samba-4a0c2605ac5c28e8d0ee469b897df746d55e26f4.tar.gz |
s4:smb_server/smb2: remove unused _pad variables
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/smb2/keepalive.c | 4 | ||||
-rw-r--r-- | source4/smb_server/smb2/sesssetup.c | 4 | ||||
-rw-r--r-- | source4/smb_server/smb2/tcon.c | 4 |
3 files changed, 0 insertions, 12 deletions
diff --git a/source4/smb_server/smb2/keepalive.c b/source4/smb_server/smb2/keepalive.c index c362acb7ce2..cd53778d4d3 100644 --- a/source4/smb_server/smb2/keepalive.c +++ b/source4/smb_server/smb2/keepalive.c @@ -51,8 +51,6 @@ static void smb2srv_keepalive_send(struct smb2srv_request *req) void smb2srv_keepalive_recv(struct smb2srv_request *req) { - uint16_t _pad; - if (req->in.body_size != 0x04) { smb2srv_send_error(req, NT_STATUS_INVALID_PARAMETER); return; @@ -63,8 +61,6 @@ void smb2srv_keepalive_recv(struct smb2srv_request *req) return; } - _pad = SVAL(req->in.body, 0x02); - req->status = smb2srv_keepalive_backend(req); if (req->control_flags & SMB2SRV_REQ_CTRL_FLAG_NOT_REPLY) { diff --git a/source4/smb_server/smb2/sesssetup.c b/source4/smb_server/smb2/sesssetup.c index 35a14840300..d4b8de60794 100644 --- a/source4/smb_server/smb2/sesssetup.c +++ b/source4/smb_server/smb2/sesssetup.c @@ -282,12 +282,8 @@ static void smb2srv_logoff_send(struct smb2srv_request *req) void smb2srv_logoff_recv(struct smb2srv_request *req) { - uint16_t _pad; - SMB2SRV_CHECK_BODY_SIZE(req, 0x04, false); - _pad = SVAL(req->in.body, 0x02); - req->status = smb2srv_logoff_backend(req); if (req->control_flags & SMB2SRV_REQ_CTRL_FLAG_NOT_REPLY) { diff --git a/source4/smb_server/smb2/tcon.c b/source4/smb_server/smb2/tcon.c index e7d28479c14..b2d104329a1 100644 --- a/source4/smb_server/smb2/tcon.c +++ b/source4/smb_server/smb2/tcon.c @@ -434,12 +434,8 @@ static void smb2srv_tdis_send(struct smb2srv_request *req) void smb2srv_tdis_recv(struct smb2srv_request *req) { - uint16_t _pad; - SMB2SRV_CHECK_BODY_SIZE(req, 0x04, false); - _pad = SVAL(req->in.body, 0x02); - req->status = smb2srv_tdis_backend(req); if (req->control_flags & SMB2SRV_REQ_CTRL_FLAG_NOT_REPLY) { |