projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipv6: coding style improvements (remove assignment in if statements)
[firefly-linux-kernel-4.4.55.git]
/
net
/
ipv6
/
reassembly.c
diff --git
a/net/ipv6/reassembly.c
b/net/ipv6/reassembly.c
index 51ab096ae5746261cf320741b455188889f87038..d7d70e69973b7455fbf2b5cb88a09d428f9c45ea 100644
(file)
--- a/
net/ipv6/reassembly.c
+++ b/
net/ipv6/reassembly.c
@@
-429,7
+429,8
@@
static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *prev,
struct sk_buff *clone;
int i, plen = 0;
- if ((clone = alloc_skb(0, GFP_ATOMIC)) == NULL)
+ clone = alloc_skb(0, GFP_ATOMIC);
+ if (clone == NULL)
goto out_oom;
clone->next = head->next;
head->next = clone;