ead: clean up
[openwrt.git] / package / network / services / ead / src / ead.c
index 36235207bcb398abc2198c5fdb5fdbf78e631886..d1847c1b5e756897cdd00150d867c965ead901b4 100644 (file)
@@ -120,8 +120,8 @@ set_recv_type(pcap_t *p, bool rx)
 #ifdef PACKET_RECV_TYPE
        struct sockaddr_ll sll;
        struct ifreq ifr;
-       int ifindex, mask;
-       int fd, ret;
+       int mask;
+       int fd;
 
        fd = pcap_get_selectable_fd(p);
        if (fd < 0)
@@ -132,7 +132,7 @@ set_recv_type(pcap_t *p, bool rx)
        else
                mask = 0;
 
-       ret = setsockopt(fd, SOL_PACKET, PACKET_RECV_TYPE, &mask, sizeof(mask));
+       setsockopt(fd, SOL_PACKET, PACKET_RECV_TYPE, &mask, sizeof(mask));
 #endif
 }
 
@@ -841,7 +841,7 @@ static int
 check_bridge_port(const char *br, const char *port, void *arg)
 {
        struct ead_instance *in;
-       struct list_head *p, *tmp;
+       struct list_head *p;
 
        list_for_each(p, &instances) {
                in = list_entry(p, struct ead_instance, list);
@@ -873,7 +873,7 @@ check_all_interfaces(void)
 {
 #ifdef linux
        struct ead_instance *in;
-       struct list_head *p, *tmp;
+       struct list_head *p;
 
        br_foreach_bridge(check_bridge, NULL);