Skip to content

Commit

Permalink
stmmac: Remove redundant unlikely()
Browse files Browse the repository at this point in the history
IS_ERR() already implies unlikely(), so it can be omitted here.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Dec 10, 2010
1 parent 040253c commit 0e51d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ static int stmmac_sw_tso(struct stmmac_priv *priv, struct sk_buff *skb)
skb, skb->len);

segs = skb_gso_segment(skb, priv->dev->features & ~NETIF_F_TSO);
if (unlikely(IS_ERR(segs)))
if (IS_ERR(segs))
goto sw_tso_end;

do {
Expand Down

0 comments on commit 0e51d67

Please sign in to comment.