diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-07-25 11:03:07 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-07-26 09:28:16 +0200 |
commit | 7a90f9465be9640d14e670fb7dc33a29be9c46b7 (patch) | |
tree | c75777dad70f349ee8fbedf22c3ddb343ff50a5d | |
parent | dd51b9c9d3bfcf53f08162d4c46420888d4316f8 (diff) | |
download | libqmi-7a90f9465be9640d14e670fb7dc33a29be9c46b7.tar.gz |
qmicli,dms: no need to check for unique_id array being NULL
It will never be really.
(cherry picked from commit 97b7cb279a934cff424ec4a9379bad93b072d358)
-rw-r--r-- | src/qmicli/qmicli-dms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmicli/qmicli-dms.c b/src/qmicli/qmicli-dms.c index 5a7b304c..905210cd 100644 --- a/src/qmicli/qmicli-dms.c +++ b/src/qmicli/qmicli-dms.c @@ -3129,10 +3129,10 @@ get_stored_image_list_stored_images_ready (QmiClientDms *client, g_free (unique_id_str); if (image->type == QMI_DMS_FIRMWARE_IMAGE_TYPE_MODEM) { - result->modem_unique_id = subimage->unique_id ? g_array_ref (subimage->unique_id) : NULL; + result->modem_unique_id = g_array_ref (subimage->unique_id); result->modem_build_id = g_strdup (subimage->build_id); } else if (image->type == QMI_DMS_FIRMWARE_IMAGE_TYPE_PRI) { - result->pri_unique_id = subimage->unique_id ? g_array_ref (subimage->unique_id) : NULL; + result->pri_unique_id = g_array_ref (subimage->unique_id); result->pri_build_id = g_strdup (subimage->build_id); } else g_assert_not_reached (); |