selftests/net: do_setcpu function not need to have a return value
Subsystems (3)
PATCH 1/1 selftests/net: do_setcpu function not need to have a return value
in the do_setcpu, this function does not need to have a return value, which is meaningless
Signed-off-by Liu Jing <[email protected]>
--- tools/testing/selftests/net/msg_zerocopy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tools/testing/selftests/net/msg_zerocopy.c +1 -2
@@ -118,7 +118,7 @@ static uint16_t get_ip_csum(const uint16_t *start, int num_words)return ~sum; } -static int do_setcpu (int cpu) +static void do_setcpu (int cpu) {cpu_set_t mask;
@@ -129,7 +129,6 @@ static int do_setcpu(int cpu)else if (cfg_verbose)fprintf (stderr,"cpu: %u\n" , cpu); -return 0 ; }static void do_setsockopt (int fd,int level,int optname,int val)
Signature · 1 line
2.33.0
Quoted 4 lines · Liu Jing
in the
do_setcpu, this function does not need to have a return value, which is meaninglessSigned-off-by Liu Jing <[email protected]>
Thanks,
I also see that the caller does not check the return value.
Reviewed-by Simon Horman <[email protected]>
Jakub Kicinski
maintainerQuoted 2 lines · On Tue, 3 Sep 2024 17:51:11 +0800 Liu Jing wrote:
in the
do_setcpu, this function does not need to have a return value, which is meaningless
This test is flaky:
https://netdev.bots.linux.dev/contest.html?executor=vmksft-net-dbg&test=msg-zerocopy-sh
Could you please try to figure out what the problem is and fix it instead of sending "cleanups"?
Signature · 1 line
pw-bot: reject