netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] GRE: Use IS_ERR_OR_NULL in gre_gso_segment
@ 2013-04-19  6:48 Simon Horman
  2013-04-19 10:24 ` Eric Dumazet
  0 siblings, 1 reply; 14+ messages in thread
From: Simon Horman @ 2013-04-19  6:48 UTC (permalink / raw)
  To: netdev; +Cc: Dmitry Kozlov, Simon Horman

Signed-off-by: Simon Horman <horms@verge.net.au>
---
 net/ipv4/gre.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/gre.c b/net/ipv4/gre.c
index d2d5a99..0ae998b 100644
--- a/net/ipv4/gre.c
+++ b/net/ipv4/gre.c
@@ -168,7 +168,7 @@ static struct sk_buff *gre_gso_segment(struct sk_buff *skb,
 	/* segment inner packet. */
 	enc_features = skb->dev->hw_enc_features & netif_skb_features(skb);
 	segs = skb_mac_gso_segment(skb, enc_features);
-	if (!segs || IS_ERR(segs))
+	if (IS_ERR_OR_NULL(segs))
 		goto out;
 
 	skb = segs;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-04-26  3:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19  6:48 [PATCH] GRE: Use IS_ERR_OR_NULL in gre_gso_segment Simon Horman
2013-04-19 10:24 ` Eric Dumazet
2013-04-19 18:28   ` David Miller
2013-04-22  1:35     ` Simon Horman
2013-04-22  1:44       ` David Miller
2013-04-22  2:13         ` Simon Horman
2013-04-23  7:50           ` Simon Horman
2013-04-23 20:47             ` Jesse Gross
2013-04-25  8:46               ` Herbert Xu
2013-04-25  9:01                 ` David Miller
2013-04-25  9:03                   ` Herbert Xu
2013-04-25  9:11                     ` Herbert Xu
2013-04-25 13:58                       ` Eric Dumazet
2013-04-26  3:38                         ` Herbert Xu

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).