mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 16:00:12 +01:00
device: drop unused variable and avoid compiler warning
../src/core/devices/nm-device-ethernet.c:1164:35: error: unused variable error [-Werror,-Wunused-variable]
gs_free_error GError *error = NULL;
^
Fixes: aa9b5e28eb ('ethernet: fix setting ip-ifindex for PPPoE connections')
This commit is contained in:
parent
b1d11333c0
commit
18d0ab14bc
1 changed files with 1 additions and 2 deletions
|
|
@ -1160,8 +1160,7 @@ _ppp_mgr_callback(NMPppMgr *ppp_mgr, const NMPppMgrCallbackData *callback_data,
|
|||
|
||||
if (device_state < NM_DEVICE_STATE_IP_CONFIG) {
|
||||
if (callback_data->data.state >= NM_PPP_MGR_STATE_HAVE_IFINDEX) {
|
||||
gs_free char *old_name = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
gs_free char *old_name = NULL;
|
||||
|
||||
if (!nm_device_set_ip_ifindex(device, callback_data->data.ifindex)) {
|
||||
_LOGW(LOGD_DEVICE | LOGD_PPP,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue