From nobody Wed Nov 27 07:37:37 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1700035276405552.0211925799808; Wed, 15 Nov 2023 00:01:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Ap8-0002p2-De; Wed, 15 Nov 2023 03:00:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Ap6-0002ot-Gw for qemu-devel@nongnu.org; Wed, 15 Nov 2023 03:00:32 -0500 Received: from cmccmta6.chinamobile.com ([111.22.67.139] helo=cmccmta3.chinamobile.com) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Aoz-0004SC-4m for qemu-devel@nongnu.org; Wed, 15 Nov 2023 03:00:32 -0500 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee965547a90399-42399; Wed, 15 Nov 2023 16:00:16 +0800 (CST) Received: from ubuntu.localdomain (unknown[10.54.5.255]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee565547a8f6d5-6e0b4; Wed, 15 Nov 2023 16:00:16 +0800 (CST) X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee965547a90399-42399 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee565547a8f6d5-6e0b4 From: zhujun2 To: thuth@redhat.com Cc: lvivier@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, zhujun2@cmss.chinamobile.com Subject: [PATCH] tests/qtest: remove unused variables Date: Wed, 15 Nov 2023 00:00:14 -0800 Message-Id: <20231115080014.12273-1-zhujun2@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=111.22.67.139; envelope-from=zhujun2@cmss.chinamobile.com; helo=cmccmta3.chinamobile.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1700035278827100002 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" These variables are never referenced in the code, just remove them Signed-off-by: zhujun2 --- tests/qtest/test-filter-mirror.c | 2 +- tests/qtest/test-filter-redirector.c | 4 ++-- tests/qtest/virtio-net-test.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/qtest/test-filter-mirror.c b/tests/qtest/test-filter-mir= ror.c index adeada3eb8..7aa81daa93 100644 --- a/tests/qtest/test-filter-mirror.c +++ b/tests/qtest/test-filter-mirror.c @@ -60,7 +60,7 @@ static void test_mirror(void) =20 g_assert_cmpint(len, =3D=3D, sizeof(send_buf)); recv_buf =3D g_malloc(len); - ret =3D recv(recv_sock[0], recv_buf, len, 0); + recv(recv_sock[0], recv_buf, len, 0); g_assert_cmpstr(recv_buf, =3D=3D, send_buf); =20 g_free(recv_buf); diff --git a/tests/qtest/test-filter-redirector.c b/tests/qtest/test-filter= -redirector.c index e72e3b7873..e4dfeff2e0 100644 --- a/tests/qtest/test-filter-redirector.c +++ b/tests/qtest/test-filter-redirector.c @@ -117,7 +117,7 @@ static void test_redirector_tx(void) =20 g_assert_cmpint(len, =3D=3D, sizeof(send_buf)); recv_buf =3D g_malloc(len); - ret =3D recv(recv_sock, recv_buf, len, 0); + recv(recv_sock, recv_buf, len, 0); g_assert_cmpstr(recv_buf, =3D=3D, send_buf); =20 g_free(recv_buf); @@ -184,7 +184,7 @@ static void test_redirector_rx(void) =20 g_assert_cmpint(len, =3D=3D, sizeof(send_buf)); recv_buf =3D g_malloc(len); - ret =3D recv(backend_sock[0], recv_buf, len, 0); + recv(backend_sock[0], recv_buf, len, 0); g_assert_cmpstr(recv_buf, =3D=3D, send_buf); =20 close(send_sock); diff --git a/tests/qtest/virtio-net-test.c b/tests/qtest/virtio-net-test.c index fab5dd8b05..26df5bbabe 100644 --- a/tests/qtest/virtio-net-test.c +++ b/tests/qtest/virtio-net-test.c @@ -90,7 +90,7 @@ static void tx_test(QVirtioDevice *dev, g_assert_cmpint(ret, =3D=3D, sizeof(len)); len =3D ntohl(len); =20 - ret =3D recv(socket, buffer, len, 0); + recv(socket, buffer, len, 0); g_assert_cmpstr(buffer, =3D=3D, "TEST"); } =20 --=20 2.17.1