mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 08:04:13 +08:00
be2net: remove unnecessary usage of unlikely()
Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7f64006266
commit
421737bdd5
@ -719,8 +719,8 @@ static netdev_tx_t be_xmit(struct sk_buff *skb,
|
||||
* 60 bytes long.
|
||||
* As a workaround disable TX vlan offloading in such cases.
|
||||
*/
|
||||
if (unlikely(vlan_tx_tag_present(skb) &&
|
||||
(skb->ip_summed != CHECKSUM_PARTIAL || skb->len <= 60))) {
|
||||
if (vlan_tx_tag_present(skb) &&
|
||||
(skb->ip_summed != CHECKSUM_PARTIAL || skb->len <= 60)) {
|
||||
skb = skb_share_check(skb, GFP_ATOMIC);
|
||||
if (unlikely(!skb))
|
||||
goto tx_drop;
|
||||
|
Loading…
Reference in New Issue
Block a user