Re: [PATCH net-next] selftests: Fix get_ifidx and callers in nettest.c

2019-08-16 Thread David Miller
From: David Ahern Date: Wed, 14 Aug 2019 10:11:51 -0700 > From: David Ahern > > Dan reported: ... > Update get_ifidx to return -1 on errors and cleanup callers of it. > > Fixes: acda655fefae ("selftests: Add nettest") > Reported-by: Dan Carpenter > Signed-off-by: David Ahern Applied, thank

[PATCH net-next] selftests: Fix get_ifidx and callers in nettest.c

2019-08-14 Thread David Ahern
From: David Ahern Dan reported: The patch acda655fefae: "selftests: Add nettest" from Aug 1, 2019, leads to the following static checker warning: ./tools/testing/selftests/net/nettest.c:1690 main() warn: unsigned 'tmp' is never less than zero. ./tools/testin