aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux/common/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/arch/linux/common/net.h')
-rw-r--r--hardinfo2/arch/linux/common/net.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/hardinfo2/arch/linux/common/net.h b/hardinfo2/arch/linux/common/net.h
index d0738ce5..87e7e59b 100644
--- a/hardinfo2/arch/linux/common/net.h
+++ b/hardinfo2/arch/linux/common/net.h
@@ -42,7 +42,6 @@ void get_net_info(char *if_name, NetInfo *netinfo)
strcpy(ifr.ifr_name, if_name);
strcpy(netinfo->name, if_name);
- strcpy(ifr.ifr_name, if_name);
if (ioctl(fd, SIOCGIFMTU, &ifr) < 0) {
netinfo->mtu = 0;
} else {