mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 21:26:57 +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;
|
||||
|
||||
recv_len = err;
|
||||
err = 0;
|
||||
|
||||
/* Satisfy the typing for the netlink macros */
|
||||
msg = answer->nlmsghdr;
|
||||
@ -1377,7 +1376,6 @@ int lxc_convert_mac(char *macaddr, struct sockaddr *sockaddr)
|
||||
data = (unsigned char *)sockaddr->sa_data;
|
||||
|
||||
while ((*macaddr != '\0') && (i < ETH_ALEN)) {
|
||||
val = 0;
|
||||
c = *macaddr++;
|
||||
if (isdigit(c))
|
||||
val = c - '0';
|
||||
|
Loading…
Reference in New Issue
Block a user