Commit 6b7f430e authored by Daniel Marjamaki's avatar Daniel Marjamaki Committed by Linus Torvalds
Browse files

[PATCH] arch/i386/kernel/cpuid.c: 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 6926d570
...@@ -117,14 +117,13 @@ static ssize_t cpuid_read(struct file *file, char __user *buf, ...@@ -117,14 +117,13 @@ static ssize_t cpuid_read(struct file *file, char __user *buf,
{ {
char __user *tmp = buf; char __user *tmp = buf;
u32 data[4]; u32 data[4];
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);
if (count % 16) if (count % 16)
return -EINVAL; /* Invalid chunk size */ return -EINVAL; /* Invalid chunk size */
for (rv = 0; count; count -= 16) { for (; count; count -= 16) {
do_cpuid(cpu, reg, data); do_cpuid(cpu, reg, data);
if (copy_to_user(tmp, &data, 16)) if (copy_to_user(tmp, &data, 16))
return -EFAULT; return -EFAULT;
......
Supports Markdown
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