* [PATCH] stmmac: Remove redundant unlikely()
@ 2010-12-09 14:50 Tobias Klauser
2010-12-10 22:57 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Tobias Klauser @ 2010-12-09 14:50 UTC (permalink / raw)
To: Giuseppe Cavallaro, netdev; +Cc: kernel-janitors
IS_ERR() already implies unlikely(), so it can be omitted here.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
drivers/net/stmmac/stmmac_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c
index c0dc785..20f803d 100644
--- a/drivers/net/stmmac/stmmac_main.c
+++ b/drivers/net/stmmac/stmmac_main.c
@@ -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 {
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] stmmac: Remove redundant unlikely()
2010-12-09 14:50 [PATCH] stmmac: Remove redundant unlikely() Tobias Klauser
@ 2010-12-10 22:57 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-12-10 22:57 UTC (permalink / raw)
To: tklauser; +Cc: peppe.cavallaro, netdev, kernel-janitors
From: Tobias Klauser <tklauser@distanz.ch>
Date: Thu, 9 Dec 2010 15:50:22 +0100
> IS_ERR() already implies unlikely(), so it can be omitted here.
>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-10 22:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-09 14:50 [PATCH] stmmac: Remove redundant unlikely() Tobias Klauser
2010-12-10 22:57 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).