]> 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)
commit3217f83b33ff70a36202d777ac658e8f30eae7ce
tree78e28fde06bede1084b7dc8efbd7c632ca4902fc
parent2b34bbe22cbc5863ebf1358cfe2e96c075cb551a
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