From patchwork Mon Jul 1 11:32:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Jing X-Patchwork-Id: 13717951 Received: from cmccmta1.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62F312B9C6; Mon, 1 Jul 2024 11:33:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719833588; cv=none; b=mJsLn0nTb8hUfLNM8GInzqrso/zhTuShEAkQwM+LFDCtFjLOJjMGI3Dut+ytHKAjUKF9upl47QYgKN5OEt8Nz7D7fZczZEjjxYBdyjIRfr9vB8Wwrxq9uTV4hmdybXQJFcD+0kQwNH0S7E9DtIwr8TczQTGjrtYiTon5qwXGUuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719833588; c=relaxed/simple; bh=4+Ivk6b2jrBFJKc513Er8JVn7rnOHx579gQcUdHuc9A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=tThuozjWfCcDDA2SsVtRyNCE7Y9Xl/9KDx1JcvAhIBZiyCdYfFyoRnmaieCBDI/BQAbgxxa8IMQR7zx/Dx4LaGkG0hj/amKWFJFO4eAUtnvb4prsx/Bi/HoP308edCkfc/W8fieq88220rBmLIGD/oXFTKyZ9VbGXPMI0PbqHPA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app01-12001 (RichMail) with SMTP id 2ee1668293e5196-afa90; Mon, 01 Jul 2024 19:32:53 +0800 (CST) X-RM-TRANSID: 2ee1668293e5196-afa90 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain.localdomain (unknown[10.54.5.252]) by rmsmtp-syy-appsvr03-12003 (RichMail) with SMTP id 2ee3668293e3681-69d77; Mon, 01 Jul 2024 19:32:53 +0800 (CST) X-RM-TRANSID: 2ee3668293e3681-69d77 From: Liu Jing To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, shuah@kernel.org Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Liu Jing Subject: [PATCH] selftest: epoll_busy_poll: remove unnecessary assignment in TEST_F(epoll_busy_poll, test_get_params) Date: Mon, 1 Jul 2024 19:32:51 +0800 Message-Id: <20240701113251.6630-1-liujing@cmss.chinamobile.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In the TEST_F(epoll_busy_poll, test_get_params), the initialized value of 'ret' is unused, because it will be assigned by the ioctl.thus remove it. Signed-off-by: Liu Jing --- tools/testing/selftests/net/epoll_busy_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/epoll_busy_poll.c b/tools/testing/selftests/net/epoll_busy_poll.c index 16e457c2f877..652b0957b6c5 100644 --- a/tools/testing/selftests/net/epoll_busy_poll.c +++ b/tools/testing/selftests/net/epoll_busy_poll.c @@ -130,7 +130,7 @@ TEST_F(epoll_busy_poll, test_get_params) * the default should be default and all fields should be zero'd by the * kernel, so set params fields to garbage to test this. */ - int ret = 0; + int ret; self->params.busy_poll_usecs = 0xff; self->params.busy_poll_budget = 0xff;