]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: pmtu: Reverse return codes of functions
authorStefano Brivio <sbrivio@redhat.com>
Sat, 17 Mar 2018 01:31:38 +0000 (02:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Mar 2018 00:15:13 +0000 (20:15 -0400)
commite36e8750ddfa4babb6b52c1375e8a1dd8bb03209
tree78e28fde06bede1084b7dc8efbd7c632ca4902fc
parent72ae0cf36a1d2fe419c743b032b8612a10f505ae
selftests: pmtu: Reverse return codes of functions

David suggests it's more intuitive to return non-zero on
failures, and zero on success.

No need to introduce tail 'return 0' in functions, they will
return the exit code of the last command anyway.

Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh