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:
parent
9a1b95f372
commit
35cda1d5cb
1 changed files with 2 additions and 2 deletions
|
@ -1381,9 +1381,9 @@ static void eth_rx(struct gmac_queue *queue)
|
||||||
* the used VLAN tag.
|
* 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 *hdr_vlan =
|
||||||
(struct net_eth_vlan_hdr *)
|
(struct net_eth_vlan_hdr *)
|
||||||
NET_ETH_HDR(rx_frame);
|
NET_ETH_HDR(rx_frame);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue