CID 1355234 Logically dead code
The indicated dead code may have performed some action;
that action will never occur.
In eet_data_descriptor_element_add: Code can never be
reached because of a logical contradiction (CWE-561)
Solution: use explicit range within valid values with <= and >=
rather than excluded values with > and <
*/
if ((group_type > EET_G_UNKNOWN)
&& (group_type < EET_G_LAST)
- && (((type > EET_T_UNKNOW) && (type < EET_T_STRING))
- || ((type > EET_T_NULL) && (type < EET_T_VALUE))
- || ((type > EET_T_VALUE) && (type < EET_T_LAST)))
+ && (((type >= EET_T_CHAR) && (type <= EET_T_ULONG_LONG))
+ || ((type >= EET_T_F32P32) && (type <= EET_T_F8P24)))
&& (!subtype))
{
subtype = calloc(1, sizeof (Eet_Data_Descriptor));