cinterion: simplify loop when loading 2G bands

This commit is contained in:
Aleksander Morgado
2012-04-12 22:35:08 +02:00
parent 90f4a034b2
commit c7d39e2c28

View File

@@ -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;