* [PATCH linux-next] net: ipv6: Fix compiler warning
@ 2013-02-18 20:38 Stratos Karafotis
2013-02-18 21:54 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stratos Karafotis @ 2013-02-18 20:38 UTC (permalink / raw)
To: Steffen Klassert, David S. Miller, Alexey Kuznetsov, James Morris,
Hideaki YOSHIFUJI
Cc: netdev, linux-kernel
Fix the following compiler warning (also a checkpatch error):
net/ipv6/xfrm6_mode_tunnel.c: In function ‘xfrm6_mode_tunnel_input’:
net/ipv6/xfrm6_mode_tunnel.c:72:2: warning: suggest parentheses around
assignment used as truth value [-Wparentheses]
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
---
net/ipv6/xfrm6_mode_tunnel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/ipv6/xfrm6_mode_tunnel.c b/net/ipv6/xfrm6_mode_tunnel.c
index 93c41a8..9bf6a74 100644
--- a/net/ipv6/xfrm6_mode_tunnel.c
+++ b/net/ipv6/xfrm6_mode_tunnel.c
@@ -69,7 +69,8 @@ static int xfrm6_mode_tunnel_input(struct xfrm_state *x, struct sk_buff *skb)
if (!pskb_may_pull(skb, sizeof(struct ipv6hdr)))
goto out;
- if (err = skb_unclone(skb, GFP_ATOMIC))
+ err = skb_unclone(skb, GFP_ATOMIC);
+ if (err)
goto out;
if (x->props.flags & XFRM_STATE_DECAP_DSCP)
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH linux-next] net: ipv6: Fix compiler warning
2013-02-18 20:38 [PATCH linux-next] net: ipv6: Fix compiler warning Stratos Karafotis
@ 2013-02-18 21:54 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-02-18 21:54 UTC (permalink / raw)
To: stratosk
Cc: steffen.klassert, kuznet, jmorris, yoshfuji, netdev, linux-kernel
Patches to fix this have already been applied to net-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-18 21:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18 20:38 [PATCH linux-next] net: ipv6: Fix compiler warning Stratos Karafotis
2013-02-18 21:54 ` 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).