aboutsummaryrefslogtreecommitdiffstats
path: root/fs/seq_file.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2013-02-27 20:03:21 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-27 22:10:12 -0500
commit80de7f7ae013b1e287059f39eaba2a12219681cf (patch)
treeab9eb043410bac11e6adfc765803ba7efbf0a534 /fs/seq_file.c
parent80d26af89a7249aa5475467000322163c60cdd72 (diff)
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>
Diffstat (limited to 'fs/seq_file.c')
-rw-r--r--fs/seq_file.c4
1 files 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)
308 mutex_lock(&m->lock); 308 mutex_lock(&m->lock);
309 m->version = file->f_version; 309 m->version = file->f_version;
310 switch (whence) { 310 switch (whence) {
311 case 1: 311 case SEEK_CUR:
312 offset += file->f_pos; 312 offset += file->f_pos;
313 case 0: 313 case SEEK_SET:
314 if (offset < 0) 314 if (offset < 0)
315 break; 315 break;
316 retval = offset; 316 retval = offset;