From nobody Sun Feb 8 19:43:15 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.61 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=1571752746; cv=none; d=zoho.com; s=zohoarc; b=UbgykCIUlNtsYYKhoSZLotnXQueFVAhb8QeMYcCZLyAYhWcU72VJX67vTuzLLNBuOL29afzk0gmDd7gMlE0URD6CyyH6FfJ0H76X5JntENejh/vfro+Auy3zTs74LQnbWuPrepYHtoaWrXNzjrWY7QY+cT35eCiMAH/tvCAkfEk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571752746; 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=91lXJ4JRbWOX0tZlR+jpa7q5kRic9l4PPJigS5y7rvE=; b=iqkgIqYMxmgOnVkxtjm+Rk9wOa3790DKMLZOOsZ8ed1NT/HuuzpDBg+C5egcoZkvVZj//AhrqyMTK/QJLbDBUMpOMt9BTeGQE9trJXavS9KzCb3qjsCCset/6mU+WDnK+kmtcBKJTU9u2Q+lhDOM9j+3hyhxYHWMRpnMfpSyDl0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1571752746122953.9186125326722; Tue, 22 Oct 2019 06:59:06 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-179-CuIXQ71VM7K_bj8-sA7LDA-1; Tue, 22 Oct 2019 09:58:30 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6C4E5801E52; Tue, 22 Oct 2019 13:58:25 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 11D1352CE; Tue, 22 Oct 2019 13:58:25 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B7D241803517; Tue, 22 Oct 2019 13:58:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9MDwNwu001531 for ; Tue, 22 Oct 2019 09:58:23 -0400 Received: by smtp.corp.redhat.com (Postfix) id B71086012E; Tue, 22 Oct 2019 13:58:23 +0000 (UTC) Received: from moe.redhat.com (unknown [10.43.2.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4172D6012C for ; Tue, 22 Oct 2019 13:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571752742; 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=91lXJ4JRbWOX0tZlR+jpa7q5kRic9l4PPJigS5y7rvE=; b=EzmG5GxSVC7gAJr3tSV/qXzvBzDIctnwTEQ992HcRYWXYbZKc9Z7LazenpMikT3J6DbWC9 oa9Hk6Cy+aAs5T1/1cXrZFRKkDJi/cZc8EKwRT3uNtqBTLVgMXBks1hiMiu2EkMiNzM16z bY8wFb+RQTiIWWsYOCG4FOiiZ1YtNUQ= From: Michal Privoznik To: libvir-list@redhat.com Date: Tue, 22 Oct 2019 15:57:07 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 03/75] access: Drop virAsprintf() and virAsprintfQuiet() retval checking X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: CuIXQ71VM7K_bj8-sA7LDA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" These functions can't fail really. Drop checking of their retval then. Signed-off-by: Michal Privoznik --- src/access/viraccessdriverpolkit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/access/viraccessdriverpolkit.c b/src/access/viraccessdrive= rpolkit.c index 496210fabe..5d6c4204ff 100644 --- a/src/access/viraccessdriverpolkit.c +++ b/src/access/viraccessdriverpolkit.c @@ -59,10 +59,8 @@ virAccessDriverPolkitFormatAction(const char *typename, char *actionid =3D NULL; size_t i; =20 - if (virAsprintf(&actionid, "%s.%s.%s", - VIR_ACCESS_DRIVER_POLKIT_ACTION_PREFIX, - typename, permname) < 0) - return NULL; + virAsprintf(&actionid, "%s.%s.%s", VIR_ACCESS_DRIVER_POLKIT_ACTION_PRE= FIX, + typename, permname); =20 for (i =3D 0; actionid[i]; i++) if (actionid[i] =3D=3D '_') --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list