[network-manager-applet] applet/broadband: remove g_warn_if_reached() from broadband_state_to_mb_state()



commit 73ca9d8572a35167154e323c0fd8447bd054bff8
Author: Thomas Haller <thaller redhat com>
Date:   Wed Jun 3 10:50:11 2015 +0200

    applet/broadband: remove g_warn_if_reached() from broadband_state_to_mb_state()
    
    I always hit this warning and it seems ModemManager can normally
    return MM_MODEM_STATE_FAILED. No need to warn.

 src/applet-device-broadband.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-device-broadband.c b/src/applet-device-broadband.c
index bb9e966..66ae9a5 100644
--- a/src/applet-device-broadband.c
+++ b/src/applet-device-broadband.c
@@ -505,7 +505,6 @@ broadband_state_to_mb_state (BroadbandDeviceInfo *info)
        switch (state) {
        case MM_MODEM_STATE_FAILED:
        case MM_MODEM_STATE_UNKNOWN:
-               g_warn_if_reached ();
        case MM_MODEM_STATE_INITIALIZING:
        case MM_MODEM_STATE_LOCKED:
        case MM_MODEM_STATE_DISABLED:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]