qcdm: fix CDMA1x Pilot Sets pilot handling

The helper functions got the return code of qcdm_result_* wrong
and thus failed all requests for pilot sets.
This commit is contained in:
Dan Williams
2013-04-17 17:18:05 -05:00
parent b95dc3f2f5
commit 9fa5b9001a

View File

@@ -719,7 +719,7 @@ qcdm_cmd_pilot_sets_result_get_num (QcdmResult *result,
set_name = set_num_to_str (set_type);
qcdm_return_val_if_fail (set_name != NULL, FALSE);
if (!qcdm_result_get_u8_array (result, set_name, &array, &array_len))
if (qcdm_result_get_u8_array (result, set_name, &array, &array_len))
return FALSE;
*out_num = array_len / sizeof (DMCmdPilotSetsSet);
@@ -744,7 +744,7 @@ qcdm_cmd_pilot_sets_result_get_pilot (QcdmResult *result,
set_name = set_num_to_str (set_type);
qcdm_return_val_if_fail (set_name != NULL, FALSE);
if (!qcdm_result_get_u8_array (result, set_name, &array, &array_len))
if (qcdm_result_get_u8_array (result, set_name, &array, &array_len))
return FALSE;
qcdm_return_val_if_fail (num < array_len / sizeof (DMCmdPilotSetsSet), FALSE);