Skip to content

Commit 343e43c

Browse files
Jiri Pirkodavem330
authored andcommitted
benet: remove bogus "unlikely" on vlan check
Use of unlikely in this place is wrong. Remove it. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3c9c36b commit 343e43c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/ethernet/emulex/benet/be_main.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ static void be_rx_compl_process(struct be_adapter *adapter,
11391139
skb->rxhash = rxcp->rss_hash;
11401140

11411141

1142-
if (unlikely(rxcp->vlanf))
1142+
if (rxcp->vlanf)
11431143
__vlan_hwaccel_put_tag(skb, rxcp->vlan_tag);
11441144

11451145
netif_receive_skb(skb);
@@ -1196,7 +1196,7 @@ static void be_rx_compl_process_gro(struct be_adapter *adapter,
11961196
if (adapter->netdev->features & NETIF_F_RXHASH)
11971197
skb->rxhash = rxcp->rss_hash;
11981198

1199-
if (unlikely(rxcp->vlanf))
1199+
if (rxcp->vlanf)
12001200
__vlan_hwaccel_put_tag(skb, rxcp->vlan_tag);
12011201

12021202
napi_gro_frags(&eq_obj->napi);

0 commit comments

Comments
 (0)