Commit 1bd95be2 authored by Matt Helsley's avatar Matt Helsley Committed by Steven Rostedt (VMware)

recordmcount: Remove redundant strcmp

The strcmp is unnecessary since .text is already accepted as a
prefix in the strncmp().

Link: http://lkml.kernel.org/r/358e590b49adbe4185e161a8b364e323f3d52857.1563992889.git.mhelsley@vmware.comSigned-off-by: default avatarMatt Helsley <mhelsley@vmware.com>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 0bc11ed5
...@@ -405,8 +405,7 @@ is_mcounted_section_name(char const *const txtname) ...@@ -405,8 +405,7 @@ is_mcounted_section_name(char const *const txtname)
strcmp(".irqentry.text", txtname) == 0 || strcmp(".irqentry.text", txtname) == 0 ||
strcmp(".softirqentry.text", txtname) == 0 || strcmp(".softirqentry.text", txtname) == 0 ||
strcmp(".kprobes.text", txtname) == 0 || strcmp(".kprobes.text", txtname) == 0 ||
strcmp(".cpuidle.text", txtname) == 0 || strcmp(".cpuidle.text", txtname) == 0;
strcmp(".text.unlikely", txtname) == 0;
} }
/* 32 bit and 64 bit are very similar */ /* 32 bit and 64 bit are very similar */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment