We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a1b95f commit 35cda1dCopy full SHA for 35cda1d
drivers/ethernet/eth_sam_gmac.c
@@ -1381,9 +1381,9 @@ static void eth_rx(struct gmac_queue *queue)
1381
* the used VLAN tag.
1382
*/
1383
{
1384
- struct net_eth_hdr *hdr = NET_ETH_HDR(rx_frame);
+ struct net_eth_hdr *p_hdr = NET_ETH_HDR(rx_frame);
1385
1386
- if (ntohs(hdr->type) == NET_ETH_PTYPE_VLAN) {
+ if (ntohs(p_hdr->type) == NET_ETH_PTYPE_VLAN) {
1387
struct net_eth_vlan_hdr *hdr_vlan =
1388
(struct net_eth_vlan_hdr *)
1389
NET_ETH_HDR(rx_frame);
0 commit comments