diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-12-04 17:54:22 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-12-05 09:38:40 +0100 |
commit | 448b073bda92f5200303e4c5841e9031c4d5aadd (patch) | |
tree | 24e6de6ecbc8c2e1ae7f0221a25712a75e33c2b0 | |
parent | b11416de6a07ef696e287d7891c5979fcf4b1abb (diff) | |
download | NetworkManager-448b073bda92f5200303e4c5841e9031c4d5aadd.tar.gz |
bluetooth: the code cannot be reached
because either GSM or CDMA is present. It is checked just above.
Coverity:
Defect type: DEADCODE
src/devices/bluetooth/nm-device-bt.c:312: dead_error_line: Execution cannot reach this statement: "fallback_prefix = dcgettext...".
-rw-r--r-- | src/devices/bluetooth/nm-device-bt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/bluetooth/nm-device-bt.c b/src/devices/bluetooth/nm-device-bt.c index 2cf2794da6..689f37c9b4 100644 --- a/src/devices/bluetooth/nm-device-bt.c +++ b/src/devices/bluetooth/nm-device-bt.c @@ -304,12 +304,11 @@ complete_connection (NMDevice *device, fallback_prefix = _("GSM connection"); if (!nm_setting_gsm_get_number (s_gsm)) g_object_set (G_OBJECT (s_gsm), NM_SETTING_GSM_NUMBER, "*99#", NULL); - } else if (s_cdma) { + } else { fallback_prefix = _("CDMA connection"); if (!nm_setting_cdma_get_number (s_cdma)) g_object_set (G_OBJECT (s_cdma), NM_SETTING_GSM_NUMBER, "#777", NULL); - } else - fallback_prefix = _("DUN connection"); + } } else { g_set_error_literal (error, NM_CONNECTION_ERROR, |