]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests: mlxsw: Remove a redundant if statement in tc_flower_scale test
authorDanielle Ratson <danieller@nvidia.com>
Fri, 23 Apr 2021 12:19:45 +0000 (14:19 +0200)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:42 +0000 (17:46 -0600)
commit089bca76495f859c9652f0c160b1e6d7e171613c
tree5b6bbbfe233464e47bf772f657ecc3d6ab4dc803
parent000541d8879dad83f6d7dce1a4192d8e8230d7de
selftests: mlxsw: Remove a redundant if statement in tc_flower_scale test

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit 1f1c92139e36223b89d8140f2b72f75e79baf8bd ]

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: abfce9e062021 ("selftests: mlxsw: Reduce running time using offload indication")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
tools/testing/selftests/drivers/net/mlxsw/tc_flower_scale.sh