On Mon, 12 May 2025 16:44:18 +0200 Jakob Unterwurzacher wrote:
static struct sk_buff *ksz9477_rcv(struct sk_buff *skb, struct net_device *dev) {
- u8 *tag;
- if (skb_linearize(skb))
return NULL;
- /* Tag decoding */
- u8 *tag = skb_tail_pointer(skb) - KSZ_EGRESS_TAG_LEN;
- tag = skb_tail_pointer(skb) - KSZ_EGRESS_TAG_LEN; unsigned int port = tag[0] & KSZ9477_TAIL_TAG_EG_PORT_M; unsigned int len = KSZ_EGRESS_TAG_LEN;
Please don't add code before variable declarations.