diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-03-23 07:02:57 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-04-09 12:38:49 +0000 |
commit | 78266ac4895e34a02f4f66893d7ae867b38864b0 (patch) | |
tree | cbf0b827ea57b60d5629c655cf482d8e6f74a663 | |
parent | e1cfe3b4ee47d94a0f63bb9dbe83e3415d15b664 (diff) |
iface-modem: simplify is_cdma_only() check
The check needs to look for a matching single bit, so no need to make
it too complex.
-rw-r--r-- | src/mm-iface-modem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index a8577493..32467efb 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -5576,10 +5576,7 @@ mm_iface_modem_is_3gpp_lte_only (MMIfaceModem *self) gboolean mm_iface_modem_is_cdma_only (MMIfaceModem *self) { - MMModemCapability capabilities; - - capabilities = mm_iface_modem_get_current_capabilities (self); - return (capabilities & MM_MODEM_CAPABILITY_CDMA_EVDO) && !((MM_MODEM_CAPABILITY_CDMA_EVDO ^ capabilities) & capabilities); + return (mm_iface_modem_get_current_capabilities (self) == MM_MODEM_CAPABILITY_CDMA_EVDO); } /*****************************************************************************/ |