Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 397304b5 authored by Fabian Frederick's avatar Fabian Frederick Committed by Pablo Neira Ayuso
Browse files

netfilter: ctnetlink: remove null test before kfree



Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 5433ba36
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -742,7 +742,6 @@ 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);
	return 0;
}