From 448b073bda92f5200303e4c5841e9031c4d5aadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Thu, 4 Dec 2014 17:54:22 +0100 Subject: [PATCH] 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...". --- src/devices/bluetooth/nm-device-bt.c | 5 ++--- 1 file 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,