ID:354 - uint8_t >= 0 is always true, don't test it

Commit removes test whether value is greater or equal to 0 in
is_ipmi_channel_num(), because it's always true(and it makes compiler mad).
This commit is contained in:
Zdenek Styblik 2014-12-23 14:22:00 +01:00
parent 6ca88cb687
commit 148d0e0904

View File

@ -719,7 +719,7 @@ is_ipmi_channel_num(const char *argv_ptr, uint8_t *channel_ptr)
return (-1);
}
if ((str2uchar(argv_ptr, channel_ptr) == 0)
&& ((*channel_ptr >= 0x0 && *channel_ptr <= 0xB)
&& (*channel_ptr <= 0xB
|| (*channel_ptr >= 0xE && *channel_ptr <= 0xF))) {
return 0;
}