From 66c95c033724553e2d89aee54cb7aca9a5ab9870 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 7 Feb 2013 12:27:56 +1100 Subject: [PATCH] seq-file: use SEEK_ macros instead of hardcoded numbers Signed-off-by: Cyrill Gorcunov Signed-off-by: Andrew Morton --- fs/seq_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/seq_file.c b/fs/seq_file.c index f2bc3dfd0b88..11ba05608818 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -308,9 +308,9 @@ loff_t seq_lseek(struct file *file, loff_t offset, int whence) mutex_lock(&m->lock); m->version = file->f_version; switch (whence) { - case 1: + case SEEK_CUR: offset += file->f_pos; - case 0: + case SEEK_SET: if (offset < 0) break; retval = offset; -- 2.39.5