Commit f06ed5bc authored by Hirofumi Ogawa's avatar Hirofumi Ogawa Committed by Linus Torvalds

[PATCH] Fix the set_bit()'s warnings

Fix some set_bit() warnings.
parent 4715a27e
...@@ -211,7 +211,7 @@ static void do_update_one(void *unused) ...@@ -211,7 +211,7 @@ static void do_update_one(void *unused)
req->err = 1; /* assume update will fail on this cpu */ req->err = 1; /* assume update will fail on this cpu */
if (c->x86_vendor != X86_VENDOR_INTEL || c->x86 < 6 || if (c->x86_vendor != X86_VENDOR_INTEL || c->x86 < 6 ||
test_bit(X86_FEATURE_IA64, &c->x86_capability)){ test_bit(X86_FEATURE_IA64, c->x86_capability)){
printk(KERN_ERR "microcode: CPU%d not a capable Intel processor\n", cpu_num); printk(KERN_ERR "microcode: CPU%d not a capable Intel processor\n", cpu_num);
return; return;
} }
......
...@@ -236,7 +236,7 @@ static int msr_open(struct inode *inode, struct file *file) ...@@ -236,7 +236,7 @@ static int msr_open(struct inode *inode, struct file *file)
if ( !(cpu_online_map & (1UL << cpu)) ) if ( !(cpu_online_map & (1UL << cpu)) )
return -ENXIO; /* No such CPU */ return -ENXIO; /* No such CPU */
if ( !test_bit(X86_FEATURE_MSR, &c->x86_capability) ) if ( !test_bit(X86_FEATURE_MSR, c->x86_capability) )
return -EIO; /* MSR not supported */ return -EIO; /* MSR not supported */
return 0; return 0;
......
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