]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth/gensec: clang: Fix 'Value stored to 'status' is never read'
authorNoel Power <noel.power@suse.com>
Mon, 8 Jul 2019 13:52:26 +0000 (13:52 +0000)
committerGary Lockyer <gary@samba.org>
Thu, 11 Jul 2019 04:08:13 +0000 (04:08 +0000)
Fixes:

auth/gensec/spnego.c:877:2: warning: Value stored to 'status' is never read <--[clang]
        status = sub_status;
        ^        ~~~~~~~~~~
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
auth/gensec/spnego.c

index 0b3fbdce7acd1b44a85f1109d4e2961e0d5668e0..9e279d89850d27850b8922d1838bd08701c9532a 100644 (file)
@@ -874,8 +874,6 @@ static NTSTATUS gensec_spnego_client_negTokenTarg_finish(
        NTSTATUS status;
        struct spnego_data spnego_out;
 
-       status = sub_status;
-
        if (!spnego_state->sub_sec_ready) {
                /*
                 * We're not yet ready to deal with signatures.