ethernet: rename shadow variables

This renames the shadow variables found by -Wshadow.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2018-08-08 15:15:53 -07:00 committed by Fabio Baltieri
parent 9a1b95f372
commit 35cda1d5cb
1 changed files with 2 additions and 2 deletions

View File

@ -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);