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

Commit 881fe4bd authored by Mathieu Desnoyers's avatar Mathieu Desnoyers Committed by Steven Rostedt
Browse files

tracing: remove duplicate null-pointer check in skb tracepoint



The check for NULL skb in the kfree_skb trace event is a duplicate from the
check already done in its only caller, kfree_skb(). Remove this duplicate check.

Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@efficios.com>
LKML-Reference: <20110106175319.GA30610@Krystal>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
CC: Steven Rostedt <rostedt@goodmis.org>
CC: Frederic Weisbecker <fweisbec@gmail.com>
CC: Ingo Molnar <mingo@elte.hu>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Zhaolei <zhaolei@cn.fujitsu.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent ec6e7c3a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -25,9 +25,7 @@ TRACE_EVENT(kfree_skb,

	TP_fast_assign(
		__entry->skbaddr = skb;
		if (skb) {
		__entry->protocol = ntohs(skb->protocol);
		}
		__entry->location = location;
	),