From nobody Mon Feb 9 00:07:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693396788; cv=none; d=zohomail.com; s=zohoarc; b=f9YYabKtZ16TX0uY/W2qQ3hLIaxKD13GYZLLqV+XPC020APVXt5D9Cxda4cZjc7FVWH8TwMFoMNzPlFzGd8enhN1bejpxfIB5kDU1KFf182JJJh137fRH+Qv07ipm+2O4RzDlQkR6/zFi8gYGQsX+REtLPB8JDGwjBk7M9m4Gzw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693396788; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Xt+oEQT4rZ0MxhSPXSTzm0QLHqFQ/EwNnNNT4TF4MmA=; b=CdfWyB0p62ZWrcbiXuq+xUvN4zePQFdMiu7Va2JAjWiEvR4vvMIbZWTUnxOhyVb0icFwZZ5LoEDl1YhS0nNOckIsvC8EoVPhXovbRZ2bzkr5O/zYGsre4MkEwWUVzr8wx8uPZVwKxrOtd9jc90l0f6KP9jGO4om1G8et871XCRM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1693396788513715.2881880548457; Wed, 30 Aug 2023 04:59:48 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-258-ziMUKp3JP_eYLL1KWFUHQA-1; Wed, 30 Aug 2023 07:59:42 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CDD08823D5E; Wed, 30 Aug 2023 11:59:39 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id BC9832166B25; Wed, 30 Aug 2023 11:59:39 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 45F181946594; Wed, 30 Aug 2023 11:59:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 6CB0F1946A4A for ; Wed, 30 Aug 2023 11:59:28 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6839BC15BC0; Wed, 30 Aug 2023 11:59:28 +0000 (UTC) Received: from speedmetal.lan (unknown [10.45.242.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id C4859C15BAE for ; Wed, 30 Aug 2023 11:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693396787; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Xt+oEQT4rZ0MxhSPXSTzm0QLHqFQ/EwNnNNT4TF4MmA=; b=U99GB7ezPKBBLCPvnec+NBmawED5avVyqiFcbmyNDn8dTqZoiRF0cLvpO6Qc/70R5Oz/IC 9YWbYCbKbXO7Y8DABhcDV35GvL4C4tTFFxZrJVP+gad/nESEUlFJdnPXBPwSleqQUdkUH1 6idhrqMr7VYUCNZJDdxbl/doMqlBh48= X-MC-Unique: ziMUKp3JP_eYLL1KWFUHQA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 5/8] nss: aiforaf: Remove unused 'ret' variable Date: Wed, 30 Aug 2023 13:59:19 +0200 Message-ID: <56d3158a4cfb026771cdbc73c557d3f6c09877d7.1693396633.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693396788815100003 Content-Type: text/plain; charset="utf-8" The variable is set but never actually used. Signed-off-by: Peter Krempa Reviewed-by: Kristina Hanicova --- tools/nss/libvirt_nss.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c index cd2b8feb5a..faa44e78df 100644 --- a/tools/nss/libvirt_nss.c +++ b/tools/nss/libvirt_nss.c @@ -469,7 +469,6 @@ aiforaf(const char *name, struct addrinfo *pai, struct addrinfo **aip) { - int ret; struct hostent resolved; char buf[1024] =3D { 0 }; int err; @@ -479,9 +478,9 @@ aiforaf(const char *name, struct addrinfo *res; char **addrList; - if ((ret =3D NSS_NAME(gethostbyname2)(name, af, &resolved, - buf, sizeof(buf), - &err, &herr)) !=3D NS_SUCCESS) + if (NSS_NAME(gethostbyname2)(name, af, &resolved, + buf, sizeof(buf), + &err, &herr) !=3D NS_SUCCESS) return; addrList =3D resolved.h_addr_list; --=20 2.41.0