aboutsummaryrefslogtreecommitdiff
path: root/include/linux/uts.h
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2013-10-17 20:24:17 +0200
committerIngo Molnar <[email protected]>2013-11-06 12:34:28 +0100
commitc7e548b45ce85f765f6262149dd60d9956a31d60 (patch)
tree2bdd4a20378e4881e88ba6af24724d68168c2915 /include/linux/uts.h
parenta94d342b9cb09edfe888ea972af0883b6a8d992b (diff)
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 <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/uts.h')
0 files changed, 0 insertions, 0 deletions