From 0d3b3725211db38718eae877a29262f431089c23 Mon Sep 17 00:00:00 2001 From: Adrian Chiris Date: Fri, 19 Jun 2015 19:31:20 +0300 Subject: [PATCH] fixed an issue when checking correctness of TPT settings --- mlxconfig/mlxcfg_param_lib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlxconfig/mlxcfg_param_lib.cpp b/mlxconfig/mlxcfg_param_lib.cpp index a8635fe..eeccc40 100644 --- a/mlxconfig/mlxcfg_param_lib.cpp +++ b/mlxconfig/mlxcfg_param_lib.cpp @@ -1433,7 +1433,8 @@ u_int32_t TptParams5thGen::getTptCapabilitiesTlvTypeBe() bool TptParams5thGen::hardLimitCheck() { if (_logMaxPayloadSize != 0 && _logMaxPayloadSize != 12) { - return errmsg("Illegal LOG_MAX_TPT_PAYLOAD_SIZE parameters value. (should be 0(auto) or 12(4KB))"); + errmsg("Illegal LOG_MAX_TPT_PAYLOAD_SIZE parameters value. (should be 0(auto) or 12(4KB))"); + return false; } return true; } -- 2.46.0