]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:50:17 +0000 (10:50 +0200)
commit89cea55f534b949c3254f87f9ec7570eb1de7645
treee54c618e27b60aa3859710cb04e06a14a6b2da67
parentd929465a5875b1ec51fb320cf0ff4e988829be46
selftests: mlxsw: Remove a redundant if statement in tc_flower_scale test

[ 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>
tools/testing/selftests/drivers/net/mlxsw/tc_flower_scale.sh