linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/4 linux-next] x86, msr: use seek definitions instead of hard-coded values
@ 2014-10-17 20:01 Fabian Frederick
  2014-10-17 20:47 ` [tip:x86/cleanups] x86, msr: Use " tip-bot for Fabian Frederick
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-10-17 20:01 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fabian Frederick, H. Peter Anvin, Thomas Gleixner, Ingo Molnar,
	x86

Replace 0/1 by SEEK_SET/SEEK_CUR.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 arch/x86/kernel/msr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c
index 1c66cd0..1ed1190 100644
--- a/arch/x86/kernel/msr.c
+++ b/arch/x86/kernel/msr.c
@@ -52,11 +52,11 @@ static loff_t msr_seek(struct file *file, loff_t offset, int orig)
 
 	mutex_lock(&inode->i_mutex);
 	switch (orig) {
-	case 0:
+	case SEEK_SET:
 		file->f_pos = offset;
 		ret = file->f_pos;
 		break;
-	case 1:
+	case SEEK_CUR:
 		file->f_pos += offset;
 		ret = file->f_pos;
 		break;
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-17 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 20:01 [PATCH 4/4 linux-next] x86, msr: use seek definitions instead of hard-coded values Fabian Frederick
2014-10-17 20:47 ` [tip:x86/cleanups] x86, msr: Use " tip-bot for Fabian Frederick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).