From: Oleg Nesterov Date: Thu, 17 Oct 2013 18:24:17 +0000 (+0200) Subject: perf: Factor out strncpy() in perf_event_mmap_event() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~41^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7e548b45ce85f765f6262149dd60d9956a31d60;p=pandora-kernel.git 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 Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20131017182417.GA17753@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed