nsswitch/libwbclient: clang: Fix Value stored to 'wbc_status' is never read
authorNoel Power <noel.power@suse.com>
Mon, 8 Jul 2019 13:46:39 +0000 (13:46 +0000)
committerGary Lockyer <gary@samba.org>
Thu, 11 Jul 2019 04:08:13 +0000 (04:08 +0000)
Fixes:

nsswitch/libwbclient/wbc_util.c:123:3: warning: Value stored to 'wbc_status' is never read <--[clang]
                wbc_status = WBC_ERR_SUCCESS;
                ^            ~~~~~~~~~~~~~~~
1 warning generated.

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

index 476ed50fa44b202de19cc0e7f72e0c7967faa45d..bd2d0f8b399730e1b5319572a4d968ec8ffe86e7 100644 (file)
@@ -120,7 +120,6 @@ wbcErr wbcCtxInterfaceDetails(struct wbcContext *ctx,
        if (wbc_status == WBC_ERR_DOMAIN_NOT_FOUND) {
                /* maybe it's a standalone server */
                domain = NULL;
-               wbc_status = WBC_ERR_SUCCESS;
        } else {
                BAIL_ON_WBC_ERROR(wbc_status);
        }