Identified by Coverity. Comparing unsigned types < 0 is never true.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ic623a5b15c7053844c8e3a0b374ac3b9b929c050
{
int ret;
- if (count < 0 || count >= (1 << 16)) {
+ if (count >= (1 << 16)) {
ret = -1;
goto end;
}
{
int ret;
- if (count < 0 || count >= (1 << 16)) {
+ if (count >= (1 << 16)) {
ret = -1;
goto end;
}
{
int ret;
size_t length = strlen(str);
- if (length < 0 || length >= (1 << 16)) {
+
+ if (length >= (1 << 16)) {
ret = -1;
goto end;
}