sms-cdma-part: fix tautological-constant-compare compiler warning
This patch fixes the following compiler warning issued by clang: mm-sms-part-cdma.c:301:46: mcomparison 'guint8' (aka 'unsigned char') <= 255 is always true [-Werror,-Wtautological-constant-compare]
This commit is contained in:
committed by
Aleksander Morgado
parent
098c4c0271
commit
71f0fc6821
@@ -298,7 +298,7 @@ cause_code_to_delivery_state (guint8 error_class,
|
||||
else if (cause_code == 101)
|
||||
/* 101 reserved */
|
||||
delivery_state += CAUSE_CODE_GENERAL_PROBLEM_OTHER;
|
||||
else if (cause_code >= 108 && cause_code <= 255)
|
||||
else if (cause_code >= 108) /* cause_code <= 255 is always true */
|
||||
/* 108 to 223 reserved, treat as CAUSE_CODE_GENERAL_PROBLEM_OTHER
|
||||
* 224 to 255 reserved for TIA/EIA-41 extension, otherwise treat as CAUSE_CODE_GENERAL_PROBLEM_OTHER */
|
||||
delivery_state += CAUSE_CODE_GENERAL_PROBLEM_OTHER;
|
||||
|
||||
Reference in New Issue
Block a user