]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel/profile.c: use static const char instead of static char
authorFabian Frederick <fabf@skynet.be>
Thu, 22 May 2014 00:44:13 +0000 (10:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:44:13 +0000 (10:44 +1000)
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>
kernel/profile.c

index c1204e2af5b229659eeaa4c5c1c147177c687f3a..54bf5ba264205e11a4cbe6d46ee6330193c0fa8f 100644 (file)
@@ -52,9 +52,9 @@ static DEFINE_MUTEX(profile_flip_mutex);
 
 int profile_setup(char *str)
 {
-       static char schedstr[] = "schedule";
-       static char sleepstr[] = "sleep";
-       static char kvmstr[] = "kvm";
+       static const char schedstr[] = "schedule";
+       static const char sleepstr[] = "sleep";
+       static const char kvmstr[] = "kvm";
        int par;
 
        if (!strncmp(str, sleepstr, strlen(sleepstr))) {