seq-file: Use SEEK_ macros instead of hardcoded numbers
PATCH 1/1 seq-file: Use SEEK_ macros instead of hardcoded numbers
From: Cyrill Gorcunov <[email protected]>
Signed-off-by Cyrill Gorcunov <[email protected]>
--- fs/seq_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/seq_file.c +2 -2
@@ -308,9 +308,9 @@ loff_t seq_lseek(struct file *file, loffmutex_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;