aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2025-05-20 10:35:29 +0200
committerGuido Günther <agx@sigxcpu.org>2025-05-20 13:51:54 +0200
commit0ccc3fbeec499e217098b22471417b3bab205f72 (patch)
tree1d8a0b784b771982547733c2f52d6a25e6088a1d
parentf17430b662e972fa18ff5b4929394959e47c1afe (diff)
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>
-rw-r--r--src/mm-broadband-modem-qmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c
index 24917f1d..1b9cf04f 100644
--- a/src/mm-broadband-modem-qmi.c
+++ b/src/mm-broadband-modem-qmi.c
@@ -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);