Skip to content

Commit 35cda1d

Browse files
dcpleungfabiobaltieri
authored andcommitted
ethernet: rename shadow variables
This renames the shadow variables found by -Wshadow. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 parent 9a1b95f commit 35cda1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ethernet/eth_sam_gmac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,9 +1381,9 @@ static void eth_rx(struct gmac_queue *queue)
13811381
* the used VLAN tag.
13821382
*/
13831383
{
1384-
struct net_eth_hdr *hdr = NET_ETH_HDR(rx_frame);
1384+
struct net_eth_hdr *p_hdr = NET_ETH_HDR(rx_frame);
13851385

1386-
if (ntohs(hdr->type) == NET_ETH_PTYPE_VLAN) {
1386+
if (ntohs(p_hdr->type) == NET_ETH_PTYPE_VLAN) {
13871387
struct net_eth_vlan_hdr *hdr_vlan =
13881388
(struct net_eth_vlan_hdr *)
13891389
NET_ETH_HDR(rx_frame);

0 commit comments

Comments
 (0)