Skip to content

Commit

Permalink
recordmcount: Remove redundant strcmp
Browse files Browse the repository at this point in the history
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.com

Signed-off-by: Matt Helsley <mhelsley@vmware.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
  • Loading branch information
Matt Helsley authored and Steven Rostedt (VMware) committed Aug 31, 2019
1 parent 0bc11ed commit 1bd95be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/recordmcount.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ is_mcounted_section_name(char const *const txtname)
strcmp(".irqentry.text", txtname) == 0 ||
strcmp(".softirqentry.text", txtname) == 0 ||
strcmp(".kprobes.text", txtname) == 0 ||
strcmp(".cpuidle.text", txtname) == 0 ||
strcmp(".text.unlikely", txtname) == 0;
strcmp(".cpuidle.text", txtname) == 0;
}

/* 32 bit and 64 bit are very similar */
Expand Down

0 comments on commit 1bd95be

Please sign in to comment.