aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/kallsyms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 64343cc084b4..86c3896a1e01 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -585,7 +585,7 @@ static int prefix_underscores_count(const char *str)
585{ 585{
586 const char *tail = str; 586 const char *tail = str;
587 587
588 while (*tail != '_') 588 while (*tail == '_')
589 tail++; 589 tail++;
590 590
591 return tail - str; 591 return tail - str;