diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-17 19:30:53 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-17 19:31:29 +0100 |
commit | 18d0ab14bc7e31dec830c08e2eb6d4de01c57f82 (patch) | |
tree | 47717d5893cc96cbb65db41850c11d91fa6e0fbd | |
parent | b1d11333c0ba970d22f296b0a5c7ec44e070805a (diff) |
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: aa9b5e28eb6d ('ethernet: fix setting ip-ifindex for PPPoE connections')
-rw-r--r-- | src/core/devices/nm-device-ethernet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/devices/nm-device-ethernet.c b/src/core/devices/nm-device-ethernet.c index 4b6adfc13d..32f2fbf9b4 100644 --- a/src/core/devices/nm-device-ethernet.c +++ b/src/core/devices/nm-device-ethernet.c @@ -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, |