libmm-glib,firmware-update-settings: skip dictionary if method is NONE
No need to process the detailed dictionary if no explicit method is reported as supported. Avoids unnecessary warnings: $ mmcli -m 1 --firmware-status ** (mmcli:6887): WARNING **: 15:52:54.664: Invalid initial update settings: Missing required 'device-ids' setting error: firmware status unsupported
This commit is contained in:
@@ -255,7 +255,7 @@ mm_firmware_update_settings_new_from_variant (GVariant *variant,
|
|||||||
g_variant_get (variant, "(u@a{sv})", &method, &dictionary);
|
g_variant_get (variant, "(u@a{sv})", &method, &dictionary);
|
||||||
self = mm_firmware_update_settings_new (method);
|
self = mm_firmware_update_settings_new (method);
|
||||||
|
|
||||||
if (dictionary) {
|
if ((method != MM_MODEM_FIRMWARE_UPDATE_METHOD_NONE) && dictionary) {
|
||||||
GVariantIter iter;
|
GVariantIter iter;
|
||||||
gchar *key;
|
gchar *key;
|
||||||
GVariant *value;
|
GVariant *value;
|
||||||
|
Reference in New Issue
Block a user