diff options
author | Kuniyuki Iwashima <[email protected]> | 2023-07-31 11:15:53 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-08-01 15:02:58 -0700 |
commit | 3ff1617450eceb290ac17120fc172815e09a93cf (patch) | |
tree | 2527d15c5b15bd3dd749f4f94660d77952b9194c /drivers/fpga/fpga-mgr.c | |
parent | f3bb7759a924713bc54d15f6d0d70733b5935fad (diff) |
selftest: net: Assert on a proper value in so_incoming_cpu.c.
Dan Carpenter reported an error spotted by Smatch.
./tools/testing/selftests/net/so_incoming_cpu.c:163 create_clients()
error: uninitialized symbol 'ret'.
The returned value of sched_setaffinity() should be checked with
ASSERT_EQ(), but the value was not saved in a proper variable,
resulting in an error above.
Let's save the returned value of with sched_setaffinity().
Fixes: 6df96146b202 ("selftest: Add test for SO_INCOMING_CPU.")
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/linux-kselftest/[email protected]/
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions