projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5433ba3
)
netfilter: ctnetlink: remove null test before kfree
author
Fabian Frederick
<fabf@skynet.be>
Fri, 20 Jun 2014 20:38:58 +0000
(22:38 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 25 Jun 2014 12:49:38 +0000
(14:49 +0200)
Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_conntrack_netlink.c
b/net/netfilter/nf_conntrack_netlink.c
index 58579634427d2fcbf7f35556424a959697b8655e..aee017f625d906a57e1002e2ef0120dda4954591 100644
(file)
--- a/
net/netfilter/nf_conntrack_netlink.c
+++ b/
net/netfilter/nf_conntrack_netlink.c
@@
-742,8
+742,7
@@
static int ctnetlink_done(struct netlink_callback *cb)
{
if (cb->args[1])
nf_ct_put((struct nf_conn *)cb->args[1]);
- if (cb->data)
- kfree(cb->data);
+ kfree(cb->data);
return 0;
}