URL: https://github.com/SSSD/sssd/pull/5694 Author: alexey-tikhonov Title: #5694: KCM: removed unneeded assignment Action: opened
PR body: """ Fixes following warning: ``` Error: CLANG_WARNING: sssd-2.5.1/src/responder/kcm/kcm_renew.c:481:9: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 479| ctx = talloc_zero(auth_data, struct kcm_renew_auth_ctx); # 480| if (ctx == NULL) { # 481|-> ret = ENOMEM; # 482| DEBUG(SSSDBG_FATAL_FAILURE, "Failed to allocate renew auth ctx\n"); # 483| return; ``` """ To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/5694/head:pr5694 git checkout pr5694
From 8aae84ce58cd1c023942f0b2672e96718475cc51 Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov <atikh...@redhat.com> Date: Tue, 22 Jun 2021 10:29:44 +0200 Subject: [PATCH] KCM: removed unneeded assignment Fixes following warning: ``` Error: CLANG_WARNING: sssd-2.5.1/src/responder/kcm/kcm_renew.c:481:9: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 479| ctx = talloc_zero(auth_data, struct kcm_renew_auth_ctx); # 480| if (ctx == NULL) { # 481|-> ret = ENOMEM; # 482| DEBUG(SSSDBG_FATAL_FAILURE, "Failed to allocate renew auth ctx\n"); # 483| return; ``` --- src/responder/kcm/kcm_renew.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/responder/kcm/kcm_renew.c b/src/responder/kcm/kcm_renew.c index c619ed0a8d..684d08be6a 100644 --- a/src/responder/kcm/kcm_renew.c +++ b/src/responder/kcm/kcm_renew.c @@ -478,7 +478,6 @@ static void kcm_renew_tgt(struct tevent_context *ev, ctx = talloc_zero(auth_data, struct kcm_renew_auth_ctx); if (ctx == NULL) { - ret = ENOMEM; DEBUG(SSSDBG_FATAL_FAILURE, "Failed to allocate renew auth ctx\n"); return; }
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure