From 35cda1d5cbcc968590d2063a1a03e81c7e6a9771 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Wed, 8 Aug 2018 15:15:53 -0700 Subject: [PATCH] ethernet: rename shadow variables This renames the shadow variables found by -Wshadow. Signed-off-by: Daniel Leung --- drivers/ethernet/eth_sam_gmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ethernet/eth_sam_gmac.c b/drivers/ethernet/eth_sam_gmac.c index f2fbe8acf53..9cd9daa6908 100644 --- a/drivers/ethernet/eth_sam_gmac.c +++ b/drivers/ethernet/eth_sam_gmac.c @@ -1381,9 +1381,9 @@ static void eth_rx(struct gmac_queue *queue) * the used VLAN tag. */ { - struct net_eth_hdr *hdr = NET_ETH_HDR(rx_frame); + struct net_eth_hdr *p_hdr = NET_ETH_HDR(rx_frame); - if (ntohs(hdr->type) == NET_ETH_PTYPE_VLAN) { + if (ntohs(p_hdr->type) == NET_ETH_PTYPE_VLAN) { struct net_eth_vlan_hdr *hdr_vlan = (struct net_eth_vlan_hdr *) NET_ETH_HDR(rx_frame);