From: Mathieu Desnoyers Date: Thu, 6 Jan 2011 17:53:19 +0000 (-0500) Subject: tracing: remove duplicate null-pointer check in skb tracepoint X-Git-Tag: v3.12-rc1~7377^2~18^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=881fe4bdcdc899674524e30a76c76d298b447008;p=kernel%2Fkernel-generic.git 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: Mathieu Desnoyers LKML-Reference: <20110106175319.GA30610@Krystal> Acked-by: Neil Horman Acked-by: David S. Miller CC: Steven Rostedt CC: Frederic Weisbecker CC: Ingo Molnar CC: Thomas Gleixner CC: Zhaolei Signed-off-by: Steven Rostedt --- diff --git a/include/trace/events/skb.h b/include/trace/events/skb.h index 75ce9d5..f10293c 100644 --- a/include/trace/events/skb.h +++ b/include/trace/events/skb.h @@ -25,9 +25,7 @@ TRACE_EVENT(kfree_skb, TP_fast_assign( __entry->skbaddr = skb; - if (skb) { - __entry->protocol = ntohs(skb->protocol); - } + __entry->protocol = ntohs(skb->protocol); __entry->location = location; ),