diff mbox series

selftest: epoll_busy_poll: remove unnecessary assignment in TEST_F(epoll_busy_poll, test_get_params)

Message ID 20240701113251.6630-1-liujing@cmss.chinamobile.com (mailing list archive)
State Not Applicable
Delegated to: Netdev Maintainers
Headers show
Series selftest: epoll_busy_poll: remove unnecessary assignment in TEST_F(epoll_busy_poll, test_get_params) | expand

Checks

Context Check Description
netdev/series_format warning Single patches do not need cover letters; Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 8 this patch: 8
netdev/build_tools success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 6 of 6 maintainers
netdev/build_clang success Errors and warnings before: 8 this patch: 8
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 8 this patch: 8
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-07-01--21-00 (tests: 665)

Commit Message

Liu Jing July 1, 2024, 11:32 a.m. UTC
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 <liujing@cmss.chinamobile.com>
---
 tools/testing/selftests/net/epoll_busy_poll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jakub Kicinski July 2, 2024, 3:03 a.m. UTC | #1
On Mon,  1 Jul 2024 19:32:51 +0800 Liu Jing wrote:
> 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.

I don't think this is worth the noise, please don't send such changes
to networking.
diff mbox series

Patch

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;