summaryrefslogtreecommitdiff
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index ad2434b26970..0037a1a4339a 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -71,7 +71,8 @@ static int read_symbol(FILE *in, struct sym_entry *s)
if (rc != 3) {
if (rc != EOF) {
/* skip line */
- fgets(str, 500, in);
+ /* JVS: check return value to avoid compiler warning */
+ if (fgets(str, 500, in) == NULL) ;
}
return -1;
}