aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-04-12 22:35:08 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-05-06 15:34:12 +0200
commitc7d39e2c2885fb69d354b47f921ef68e0c1c0615 (patch)
tree6fdf37c3b7cc7fae89e3d48b45337e52de686009
parent90f4a034b203d08a3c1a04fcdb6bbbf16d982b7a (diff)
cinterion: simplify loop when loading 2G bands
-rw-r--r--plugins/cinterion/mm-broadband-modem-cinterion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cinterion/mm-broadband-modem-cinterion.c b/plugins/cinterion/mm-broadband-modem-cinterion.c
index a3d35e8c..d4d1bcfc 100644
--- a/plugins/cinterion/mm-broadband-modem-cinterion.c
+++ b/plugins/cinterion/mm-broadband-modem-cinterion.c
@@ -749,7 +749,7 @@ get_2g_band_ready (MMBroadbandModemCinterion *self,
if (G_UNLIKELY (!bands_array))
bands_array = g_array_new (FALSE, FALSE, sizeof (MMModemBand));
- for (j = 0; j < 4 && bands_2g[i].mm_bands[j] != 0; j++)
+ for (j = 0; j < bands_2g[i].n_mm_bands; j++)
g_array_append_val (bands_array, bands_2g[i].mm_bands[j]);
break;