]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Remove a redundant if statement in port_scale test
authorDanielle Ratson <danieller@nvidia.com>
Fri, 23 Apr 2021 12:19:44 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 21:01:28 +0000 (14:01 -0700)
commit63f86bbb9499eb4b075f86c593d4bafad2523c7f
tree39de18865b9868a1d1982aa3253d70be277b5408
parent6a7f1440258d50037f8c50685e60881bec26ea4b
selftests: mlxsw: Remove a redundant if statement in port_scale test

Currently, the error return code of the failure condition is lost after
using an if statement, so the test doesn't fail when it should.

Remove the if statement that separates the condition and the error code
check, so the test won't always pass.

Fixes: 0518bbf005955 ("selftests: mlxsw: Add a scale test for physical ports")
Reported-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/port_scale.sh