mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-17 01:13:49 +00:00
network: remove dead assignments
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
cef588fcf0
commit
5fe9c0a0e6
@ -935,7 +935,6 @@ int netdev_get_mtu(int ifindex)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
recv_len = err;
|
recv_len = err;
|
||||||
err = 0;
|
|
||||||
|
|
||||||
/* Satisfy the typing for the netlink macros */
|
/* Satisfy the typing for the netlink macros */
|
||||||
msg = answer->nlmsghdr;
|
msg = answer->nlmsghdr;
|
||||||
@ -1377,7 +1376,6 @@ int lxc_convert_mac(char *macaddr, struct sockaddr *sockaddr)
|
|||||||
data = (unsigned char *)sockaddr->sa_data;
|
data = (unsigned char *)sockaddr->sa_data;
|
||||||
|
|
||||||
while ((*macaddr != '\0') && (i < ETH_ALEN)) {
|
while ((*macaddr != '\0') && (i < ETH_ALEN)) {
|
||||||
val = 0;
|
|
||||||
c = *macaddr++;
|
c = *macaddr++;
|
||||||
if (isdigit(c))
|
if (isdigit(c))
|
||||||
val = c - '0';
|
val = c - '0';
|
||||||
|
Loading…
Reference in New Issue
Block a user