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...".
This commit is contained in:
Jiří Klimeš 2014-12-04 17:54:22 +01:00
parent b11416de6a
commit 448b073bda

View file

@ -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,