mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 15:00:25 +01:00
ethernet: remove unused variable
This commit is contained in:
parent
0075b41510
commit
d6799281e1
1 changed files with 0 additions and 3 deletions
|
|
@ -1913,13 +1913,10 @@ mdio_read (NMDeviceEthernet *self, int fd, struct ifreq *ifr, int location)
|
|||
{
|
||||
struct mii_ioctl_data *mii;
|
||||
int val = -1;
|
||||
const char * iface;
|
||||
|
||||
g_return_val_if_fail (fd >= 0, -1);
|
||||
g_return_val_if_fail (ifr != NULL, -1);
|
||||
|
||||
iface = nm_device_get_iface (NM_DEVICE (self));
|
||||
|
||||
mii = (struct mii_ioctl_data *) &ifr->ifr_ifru;
|
||||
mii->reg_num = location;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue