aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2014-08-22 13:03:29 +0200
committerDavid S. Miller <[email protected]>2014-08-22 11:31:30 -0700
commitea4f19c1f81d4bf709c74e3789ec785828bc6e51 (patch)
tree5917006a19b23849793cd10fff289788d89bb23a /tools/perf/util/scripting-engines/trace-event-python.c
parent7d149c5268d78d740cfdb20834328975251e7388 (diff)
net: sctp: spare unnecessary comparison in sctp_trans_elect_best
When both transports are the same, we don't have to go down that road only to realize that we will return the very same transport. We are guaranteed that curr is always non-NULL. Therefore, just short-circuit this special case. Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Neil Horman <[email protected]> Acked-by: Vlad Yasevich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions