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:
Luis A. Lozano
2017-10-26 09:29:20 +02:00
committed by Aleksander Morgado
parent 098c4c0271
commit 71f0fc6821
+1 -1
View File
@@ -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;