From nobody Wed May 8 14:25:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589359294; cv=none; d=zohomail.com; s=zohoarc; b=VBuXzzPYQxxrYQYPtK6bcw45GVcGj3kd6XL2fvSUgBbmalzdMnhL6e6wxtjQr3UvfBr4i033hDJS950OOF0BPKsveaRTaN2FuS6+Tg1JuPXffQiX5swqdqCvuxkBj0ldBKe0J2tZdFEN9wmq9KCA/F/wXBxCRx5GJ+JQtWdr4nY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589359294; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=0ANkuxArQkJrrFcaAwh+DrTBrRTwq3RZ8YsrPfhhrj0=; b=Vu5wJyiqon8oCU2YO+07k02qZSdegxikvrOz7CyevVxWzLJtq1kolegvGdDYX9HEPRteg7iPe3RmJRmGFTTVnoIAiKmdwW/JFVpaoSDKQxLNIPoz36ybJF6OO0U1JtoScllzTlhfr1eAzQgvxL2GrovLmC32VgwOuC9RmMNWK+0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 15893592941601021.8523632068659; Wed, 13 May 2020 01:41:34 -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-304-X4lQGb6_NSq1J8aLdEYpJA-1; Wed, 13 May 2020 04:41:28 -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 1D622805721; Wed, 13 May 2020 08:41:23 +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 EA13D2E179; Wed, 13 May 2020 08:41:21 +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 DBB101809543; Wed, 13 May 2020 08:41:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04D2rZXk010632 for ; Tue, 12 May 2020 22:53:35 -0400 Received: by smtp.corp.redhat.com (Postfix) id 49DE22026FFE; Wed, 13 May 2020 02:53:35 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 461152026972 for ; Wed, 13 May 2020 02:53:32 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7648C1859160 for ; Wed, 13 May 2020 02:53:32 +0000 (UTC) Received: from huawei.com (szxga05-in.huawei.com [45.249.212.191]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-65-PJ8TEsV1OLyl-UiXMckYAA-1; Tue, 12 May 2020 22:53:29 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6D28BC6338030B36E0B8 for ; Wed, 13 May 2020 10:53:21 +0800 (CST) Received: from localhost.localdomain (10.246.240.24) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Wed, 13 May 2020 10:53:14 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589359292; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=0ANkuxArQkJrrFcaAwh+DrTBrRTwq3RZ8YsrPfhhrj0=; b=GRIuL0T+AXSDs6GLn0wgYFlfYIejL4obnJPLS9Ydhw+9RamoO4sK7jIUbYgQegvXGmHbST bOe8g9vc5GDV472ceusG2/fJ4lVtz4pG1CaqLQSfzEs5UghtTUywcg9gVdSFfi1159O3it DXJopMuFfBG9fDu2m2WBw8eD5wMqk0o= X-MC-Unique: X4lQGb6_NSq1J8aLdEYpJA-1 X-MC-Unique: PJ8TEsV1OLyl-UiXMckYAA-1 From: Yan Wang To: Subject: [PATCH] util: virnetdevopenvswitch: Delete unused code Date: Wed, 13 May 2020 10:51:50 +0800 Message-ID: <1589338310-24623-1-git-send-email-wangyan122@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.246.240.24] X-CFilter-Loop: Reflected X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Wed, 13 May 2020 04:39:42 -0400 Cc: Yan Wang 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-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" It was never used since commit @57b5e27d3d7 introduced it. Signed-off-by: Yan Wang Reviewed-by: J=C3=A1n Tomko --- src/util/virnetdevopenvswitch.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/util/virnetdevopenvswitch.c b/src/util/virnetdevopenvswitc= h.c index f961777411..d16af72bdf 100644 --- a/src/util/virnetdevopenvswitch.c +++ b/src/util/virnetdevopenvswitch.c @@ -491,8 +491,6 @@ virNetDevOpenvswitchGetVhostuserIfname(const char *path, char **ifname) { char *tmpIfname =3D NULL; - char **tokens =3D NULL; - size_t ntokens =3D 0; int status; int ret =3D -1; g_autoptr(virCommand) cmd =3D NULL; @@ -524,7 +522,6 @@ virNetDevOpenvswitchGetVhostuserIfname(const char *path, ret =3D 1; =20 cleanup: - virStringListFreeCount(tokens, ntokens); return ret; } =20 --=20 2.23.0