From: Jonas Bonn <[email protected]>
'index' may not be initialized in the error path so don't try to print a
message with it.
---
drivers/qmimodem/lte.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/qmimodem/lte.c b/drivers/qmimodem/lte.c
index e0333ecf..1337e7f9 100644
--- a/drivers/qmimodem/lte.c
+++ b/drivers/qmimodem/lte.c
@@ -164,7 +164,7 @@ static void get_default_profile_cb(struct qmi_result
*result, void *user_data)
qmi_param_free(param);
error:
- ofono_error("Failed to reset profile %hhd", index);
+ ofono_error("Failed to reset default profile");
ofono_lte_remove(lte);
}
--
2.17.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono