mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 23:10:29 +01:00
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:
parent
b11416de6a
commit
448b073bda
1 changed files with 2 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue