]> git.baikalelectronics.ru Git - kernel.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)
commitcdaac1c86e5c236def5a6b07061c6f6213c5ee80
tree46a0fa46a499a889c97ed225135a74b98e23342d
parent27587f6e2c090ee64f48900b02bd4b7d63ae0867
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