Fix Coverity ID 2639: UNUSED_VALUE
authorVolker Lendecke <vl@samba.org>
Mon, 28 Nov 2011 13:34:00 +0000 (14:34 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 28 Nov 2011 13:52:31 +0000 (14:52 +0100)
libcli/smb/smbXcli_base.c

index e3d7a26ae743eb6466cd9884d2f3d995746dfda9..b35db9efcda128ed8ef3c0cd3984c724a70b46b7 100644 (file)
@@ -3697,7 +3697,6 @@ static NTSTATUS smbXcli_negprot_dispatch_incoming(struct smbXcli_conn *conn,
        struct tevent_req *subreq;
        struct smbXcli_req_state *substate;
        struct tevent_req *req;
-       struct smbXcli_negprot_state *state;
        uint32_t protocol_magic = IVAL(inbuf, 4);
 
        if (num_pending != 1) {
@@ -3707,7 +3706,6 @@ static NTSTATUS smbXcli_negprot_dispatch_incoming(struct smbXcli_conn *conn,
        subreq = conn->pending[0];
        substate = tevent_req_data(subreq, struct smbXcli_req_state);
        req = tevent_req_callback_data(subreq, struct tevent_req);
-       state = tevent_req_data(req, struct smbXcli_negprot_state);
 
        switch (protocol_magic) {
        case SMB_MAGIC: