Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80de7f7a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Linus Torvalds
Browse files

seq-file: use SEEK_ macros instead of hardcoded numbers

parent 80d26af8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;