[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1366354120-11230-1-git-send-email-horms@verge.net.au>
Date: Fri, 19 Apr 2013 15:48:40 +0900
From: Simon Horman <horms@...ge.net.au>
To: netdev@...r.kernel.org
Cc: Dmitry Kozlov <xeb@...l.ru>, Simon Horman <horms@...ge.net.au>
Subject: [PATCH] GRE: Use IS_ERR_OR_NULL in gre_gso_segment
Signed-off-by: Simon Horman <horms@...ge.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists