Found by compiler warnings. These asserts are always true and therefore useless asserts. This suggests a logic failure before, wrong variable types, coding error, etc.
|
ASSERT_XLINK_PLATFORM_R(bufSize >= 0, PCIE_INVALID_PARAMETERS); |
|
ASSERT_XLINK_PLATFORM_R(bufSize >= 0, PCIE_INVALID_PARAMETERS); |
They are always true because their param is an unsigned variable, therefore it is be definition always >=0 making these asserts always true.
Found by compiler warnings. These asserts are always true and therefore useless asserts. This suggests a logic failure before, wrong variable types, coding error, etc.
XLink/src/pc/protocols/pcie_host.c
Line 148 in d209b7e
XLink/src/pc/protocols/pcie_host.c
Line 224 in d209b7e
They are always true because their param is an
unsignedvariable, therefore it is be definition always>=0making these asserts always true.