ubloxmodem: Fixup minor style issues

- useless return at the end of a function
- mixed tabs & spaces for indentation
- over 80 characters for the comment
- line > 80 characters due to access technology conversion.  Replaced
  with a direct assignment.
This commit is contained in:
Denis Kenzior 2016-12-01 11:26:15 -06:00
parent 83783a71d8
commit 3c473979c7
1 changed files with 8 additions and 6 deletions

View File

@ -196,8 +196,8 @@ static void cesq_cb(gboolean ok, GAtResult *result, gpointer user_data)
}
for (idx = 0; idx < _MAX; idx++) {
ok = g_at_result_iter_next_number(&iter, &number);
if (!ok) {
/* Ignore and do not fail */
DBG(" CESQ: error parsing idx: %d ", idx);
@ -233,10 +233,12 @@ static void cesq_cb(gboolean ok, GAtResult *result, gpointer user_data)
DBG(" RSRQ %d ", cbd->rsrq);
DBG(" RSRP %d ", cbd->rsrp);
/* We never fail at this point we always send what we collected so far */
/*
* We never fail at this point we always send what we collected so
* far
*/
out:
ublox_netmon_finish_success(cbd);
return;
}
static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data)
@ -271,7 +273,7 @@ static void cops_cb(gboolean ok, GAtResult *result, gpointer user_data)
/* Default to GSM */
if (g_at_result_iter_next_number(&iter, &tech) == FALSE)
cbd->op.tech = ublox_map_radio_access_technology(ACCESS_TECHNOLOGY_GSM);
cbd->op.tech = OFONO_NETMON_CELL_TYPE_GSM;
else
cbd->op.tech = ublox_map_radio_access_technology(tech);