Skip to content

Commit 80de7f7

Browse files
Cyrill Gorcunovtorvalds
authored andcommitted
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>
1 parent 80d26af commit 80de7f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/seq_file.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ loff_t seq_lseek(struct file *file, loff_t offset, int whence)
308308
mutex_lock(&m->lock);
309309
m->version = file->f_version;
310310
switch (whence) {
311-
case 1:
311+
case SEEK_CUR:
312312
offset += file->f_pos;
313-
case 0:
313+
case SEEK_SET:
314314
if (offset < 0)
315315
break;
316316
retval = offset;

0 commit comments

Comments
 (0)