diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-10-17 18:24:17 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-11-06 11:34:28 (GMT) |
commit | c7e548b45ce85f765f6262149dd60d9956a31d60 (patch) | |
tree | 2bdd4a20378e4881e88ba6af24724d68168c2915 /drivers/mtd | |
parent | a94d342b9cb09edfe888ea972af0883b6a8d992b (diff) | |
download | linux-fsl-qoriq-c7e548b45ce85f765f6262149dd60d9956a31d60.tar.xz |
perf: Factor out strncpy() in perf_event_mmap_event()
While this is really minor, but strncpy() does the unnecessary
zero-padding till the end of tmp[16] and it is called every time
we are going to use the string literal.
Turn these strncpy()'s into the single strlcpy() under the new
label, saves 72 bytes.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20131017182417.GA17753@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions