Commit 6926d570 authored by Daniel Marjamaki's avatar Daniel Marjamaki Committed by Linus Torvalds

[PATCH] arch/i386/kernel/msr.c: removed unused variable

Removed the unused variable "rv".
Signed-off-by: default avatarDaniel Marjamaki <daniel.marjamaki@comhem.se>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d832245d
...@@ -172,7 +172,6 @@ static ssize_t msr_read(struct file *file, char __user * buf, ...@@ -172,7 +172,6 @@ static ssize_t msr_read(struct file *file, char __user * buf,
{ {
u32 __user *tmp = (u32 __user *) buf; u32 __user *tmp = (u32 __user *) buf;
u32 data[2]; u32 data[2];
size_t rv;
u32 reg = *ppos; u32 reg = *ppos;
int cpu = iminor(file->f_dentry->d_inode); int cpu = iminor(file->f_dentry->d_inode);
int err; int err;
...@@ -180,7 +179,7 @@ static ssize_t msr_read(struct file *file, char __user * buf, ...@@ -180,7 +179,7 @@ static ssize_t msr_read(struct file *file, char __user * buf,
if (count % 8) if (count % 8)
return -EINVAL; /* Invalid chunk size */ return -EINVAL; /* Invalid chunk size */
for (rv = 0; count; count -= 8) { for (; count; count -= 8) {
err = do_rdmsr(cpu, reg, &data[0], &data[1]); err = do_rdmsr(cpu, reg, &data[0], &data[1]);
if (err) if (err)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment