}
 
 static void qeth_l2_fill_header(struct qeth_card *card, struct qeth_hdr *hdr,
-                       struct sk_buff *skb, int ipv, int cast_type)
+                       struct sk_buff *skb, int cast_type)
 {
        struct vlan_ethhdr *veth = (struct vlan_ethhdr *)skb_mac_header(skb);
 
                                goto tx_drop;
                        elements_needed++;
                        skb_reset_mac_header(new_skb);
-                       qeth_l2_fill_header(card, hdr, new_skb, ipv, cast_type);
+                       qeth_l2_fill_header(card, hdr, new_skb, cast_type);
                        hdr->hdr.l2.pkt_length = new_skb->len;
                        memcpy(((char *)hdr) + sizeof(struct qeth_hdr),
                                skb_mac_header(new_skb), ETH_HLEN);
                        hdr = (struct qeth_hdr *)skb_push(new_skb,
                                                sizeof(struct qeth_hdr));
                        skb_set_mac_header(new_skb, sizeof(struct qeth_hdr));
-                       qeth_l2_fill_header(card, hdr, new_skb, ipv, cast_type);
+                       qeth_l2_fill_header(card, hdr, new_skb, cast_type);
                }
        }