From 3a1cc27f2e9f173384c084cc2c0c3c5e8f796185 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 20 Jan 2023 15:05:50 +0100 Subject: [PATCH] bearer-qmi: fix a mnc/mcc typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes my compiler unhappy: [471/539] Compiling C object src/ModemManager.p/mm-bearer-qmi.c.o ../src/mm-bearer-qmi.c: In function ‘process_operator_reserved_pco’: ../src/mm-bearer-qmi.c:580:18: warning: logical ‘and’ of equal expressions [-Wlogical-op] 580 | if (!tmp_mcc && !tmp_mcc && !container_id && !array->len) | ^~ Fixes: f4b8d14b8d2d ('bearer-qmi: explicitly ignore PCOs with undefined contents:') --- src/mm-bearer-qmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index 4737158c..caf925db 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -577,7 +577,7 @@ process_operator_reserved_pco (MMBearerQmi *self, return; /* Ignore PCOs with undefined contents */ - if (!tmp_mcc && !tmp_mcc && !container_id && !array->len) + if (!tmp_mcc && !tmp_mnc && !container_id && !array->len) return; app_specific_info_str = ((array->len > 0) ?