broadband-modem-qmi/cellbroadcast: Allow for G_MAXUINT16

It's a valid channel value. Since start and end are guint16 we can drop
the check altogether.

Fixes: e25dd7db9 ("broadband-modem-qmi: Add support for loading channels")

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther
2025-05-20 13:51:54 +02:00
parent f17430b662
commit 0ccc3fbeec
+1 -1
View File
@@ -11259,7 +11259,7 @@ cell_broadcast_get_broadcast_config_ready (QmiClientWms *client,
if (!elem.selected)
continue;
if (elem.start > elem.end || elem.end >= G_MAXUINT16) {
if (elem.start > elem.end) {
g_error_new (MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
"Couldn't parse channel interval '%d-%d'", elem.start, elem.end);
g_task_return_error (task, error);