Commit 80de7f7ae013b1e287059f39eaba2a12219681cf

Authored by Cyrill Gorcunov
Committed by Linus Torvalds
1 parent 80d26af89a

seq-file: use SEEK_ macros instead of hardcoded numbers

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -308,9 +308,9 @@
308 308 mutex_lock(&m->lock);
309 309 m->version = file->f_version;
310 310 switch (whence) {
311   - case 1:
  311 + case SEEK_CUR:
312 312 offset += file->f_pos;
313   - case 0:
  313 + case SEEK_SET:
314 314 if (offset < 0)
315 315 break;
316 316 retval = offset;