]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests: forwarding: multipath_eval(): Improve style
authorPetr Machata <petrm@mellanox.com>
Tue, 26 Jun 2018 00:07:08 +0000 (02:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2018 01:42:12 +0000 (10:42 +0900)
commit1b86fa3bbacef0a8e9961257557801ab1b5bef78
tree46a0fa46a499a889c97ed225135a74b98e23342d
parentb2c478723c7f8fa78d4fbdb9d7de4191249b92e0
selftests: forwarding: multipath_eval(): Improve style

- Change the indentation of the function body from 7 spaces to one tab.
- Move initialization of weights_ratio up so that it can be referenced
  from the error message about packet difference being zero.
- Move |'s consistently to continuation line, which reindent.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh