From 18d0ab14bc7e31dec830c08e2eb6d4de01c57f82 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 17 Mar 2022 19:30:53 +0100 Subject: [PATCH] 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') --- src/core/devices/nm-device-ethernet.c | 3 +-- 1 file changed, 1 insertion(+), 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,