]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
seq-file: use SEEK_ macros instead of hardcoded numbers
authorCyrill Gorcunov <gorcunov@openvz.org>
Wed, 20 Feb 2013 02:16:00 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:37 +0000 (16:53 +1100)
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/seq_file.c

index f2bc3dfd0b883585e1a2afe6734de2db6be77004..11ba056088187287fb24f9d60fe73d24efd59449 100644 (file)
@@ -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;