Commit 0d5ab144 authored by Max Filippov's avatar Max Filippov

xtensa: update *pos in cpuinfo_op.next

Increment *pos in the cpuinfo_op.next to fix the following warning
triggered by cat /proc/cpuinfo:

  seq_file: buggy .next function c_next did not update position index
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 73f99413
......@@ -724,7 +724,8 @@ c_start(struct seq_file *f, loff_t *pos)
static void *
c_next(struct seq_file *f, void *v, loff_t *pos)
{
return NULL;
++*pos;
return c_start(f, pos);
}
static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment