From: Cyrill Gorcunov Date: Thu, 28 Feb 2013 01:03:21 +0000 (-0800) Subject: seq-file: use SEEK_ macros instead of hardcoded numbers X-Git-Tag: v3.9-rc1~46^2~130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80de7f7ae013b1e287059f39eaba2a12219681cf;p=platform%2Fupstream%2Fkernel-adaptation-pc.git seq-file: use SEEK_ macros instead of hardcoded numbers Signed-off-by: Cyrill Gorcunov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/seq_file.c b/fs/seq_file.c index f2bc3df..11ba056 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;