broadband-modem-qmi: make it explicit that the GTask is successful
When load_supported_storages() doesn't run the parent implementation, the GTask is always successful. Make it explicit, in case the logic changes in the future.
This commit is contained in:
@@ -7293,6 +7293,8 @@ messaging_load_supported_storages_finish (MMIfaceModemMessaging *_self,
|
||||
return iface_modem_messaging_parent->load_supported_storages_finish (_self, res, mem1, mem2, mem3, error);
|
||||
}
|
||||
|
||||
g_assert (g_task_propagate_boolean (G_TASK (res), NULL));
|
||||
|
||||
*mem1 = g_array_sized_new (FALSE, FALSE, sizeof (MMSmsStorage), 2);
|
||||
/* Add SM storage only if not CDMA-only */
|
||||
if (!mm_iface_modem_is_cdma_only (MM_IFACE_MODEM (self))) {
|
||||
|
Reference in New Issue
Block a user