mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
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>
This commit is contained in:
parent
aba871f1e9
commit
f3da64d1ea
1 changed files with 3 additions and 3 deletions
|
@ -52,9 +52,9 @@ static DEFINE_MUTEX(profile_flip_mutex);
|
||||||
|
|
||||||
int profile_setup(char *str)
|
int profile_setup(char *str)
|
||||||
{
|
{
|
||||||
static char schedstr[] = "schedule";
|
static const char schedstr[] = "schedule";
|
||||||
static char sleepstr[] = "sleep";
|
static const char sleepstr[] = "sleep";
|
||||||
static char kvmstr[] = "kvm";
|
static const char kvmstr[] = "kvm";
|
||||||
int par;
|
int par;
|
||||||
|
|
||||||
if (!strncmp(str, sleepstr, strlen(sleepstr))) {
|
if (!strncmp(str, sleepstr, strlen(sleepstr))) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue