gsm/cdma: unsigned integers can't be < 0, so remove unnecessary conditions

It fixes compilation with the llvm/clang compiler as well.
This commit is contained in:
Aleksander Morgado
2011-08-30 11:53:05 +02:00
committed by Jiří Klimeš
parent 2a9a6ad79b
commit 4c514bfd6d
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -591,7 +591,7 @@ crm_done (MMAtSerialPort *port,
if (p) {
errno = 0;
num = strtoul (p, NULL, 10);
if (num >= 0 && num <= 4 && (errno == 0)) {
if (num <= 4 && (errno == 0)) {
MM_GENERIC_CDMA_GET_PRIVATE (user_data)->orig_crm = (guint32) num;
MM_GENERIC_CDMA_GET_PRIVATE (user_data)->cur_crm = (guint32) num;
}