diff options
author | Daniel Marjamaki <daniel.marjamaki@comhem.se> | 2006-01-06 00:12:12 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 08:33:38 -0800 |
commit | 6926d570b6159c6a7f65921ca119a675b12fef86 (patch) | |
tree | e407cd90d21424fc00cd4cb767f95f24b925453b /arch | |
parent | d832245d7cc16d50b29c1b708ccbe9c75ac376a3 (diff) | |
download | op-kernel-dev-6926d570b6159c6a7f65921ca119a675b12fef86.zip op-kernel-dev-6926d570b6159c6a7f65921ca119a675b12fef86.tar.gz |
[PATCH] arch/i386/kernel/msr.c: removed unused variable
Removed the unused variable "rv".
Signed-off-by: Daniel Marjamaki <daniel.marjamaki@comhem.se>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/msr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/msr.c b/arch/i386/kernel/msr.c index 44470fe..1d0a55e 100644 --- a/arch/i386/kernel/msr.c +++ b/arch/i386/kernel/msr.c @@ -172,7 +172,6 @@ static ssize_t msr_read(struct file *file, char __user * buf, { u32 __user *tmp = (u32 __user *) buf; u32 data[2]; - size_t rv; u32 reg = *ppos; int cpu = iminor(file->f_dentry->d_inode); int err; @@ -180,7 +179,7 @@ static ssize_t msr_read(struct file *file, char __user * buf, if (count % 8) return -EINVAL; /* Invalid chunk size */ - for (rv = 0; count; count -= 8) { + for (; count; count -= 8) { err = do_rdmsr(cpu, reg, &data[0], &data[1]); if (err) return err; |