network: remove dead assignments

parent 13687337
...@@ -922,7 +922,6 @@ int netdev_get_mtu(int ifindex) ...@@ -922,7 +922,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;
...@@ -1363,7 +1362,6 @@ int lxc_convert_mac(char *macaddr, struct sockaddr *sockaddr) ...@@ -1363,7 +1362,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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment