diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:37:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:13 -0400 |
commit | f3da64d1ea12ed6cfe18e6dedbc9739743e0b884 (patch) | |
tree | a1547a8321c4ddca30acf97b4db54997185fb799 /kernel/profile.c | |
parent | aba871f1e9a8dad07d442913998cd679529f2784 (diff) |
kernel/profile.c: use static const char instead of static char
schedstr, sleepstr and kvmstr are only used in strcmp & strlen
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/profile.c')
-rw-r--r-- | kernel/profile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/profile.c b/kernel/profile.c index c1204e2af5b2..54bf5ba26420 100644 --- a/kernel/profile.c +++ b/kernel/profile.c | |||
@@ -52,9 +52,9 @@ static DEFINE_MUTEX(profile_flip_mutex); | |||
52 | 52 | ||
53 | int profile_setup(char *str) | 53 | int profile_setup(char *str) |
54 | { | 54 | { |
55 | static char schedstr[] = "schedule"; | 55 | static const char schedstr[] = "schedule"; |
56 | static char sleepstr[] = "sleep"; | 56 | static const char sleepstr[] = "sleep"; |
57 | static char kvmstr[] = "kvm"; | 57 | static const char kvmstr[] = "kvm"; |
58 | int par; | 58 | int par; |
59 | 59 | ||
60 | if (!strncmp(str, sleepstr, strlen(sleepstr))) { | 60 | if (!strncmp(str, sleepstr, strlen(sleepstr))) { |