projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a4b0fc
)
[PATCH] IPMI: Fix more && typos
author
Corey Minyard
<minyard@acm.org>
Fri, 10 Nov 2006 20:27:50 +0000
(12:27 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 13 Nov 2006 15:40:42 +0000
(07:40 -0800)
Fix improper use of "&&" when "&" was intended.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ipmi/ipmi_msghandler.c
patch
|
blob
|
history
diff --git
a/drivers/char/ipmi/ipmi_msghandler.c
b/drivers/char/ipmi/ipmi_msghandler.c
index 0b07ca1b71fa8450adab289e849b41e33c4bfba0..a41b8df240730f8a2fd89219fcc6b3c6100119b1 100644
(file)
--- a/
drivers/char/ipmi/ipmi_msghandler.c
+++ b/
drivers/char/ipmi/ipmi_msghandler.c
@@
-1854,7
+1854,7
@@
static ssize_t provides_dev_sdrs_show(struct device *dev,
struct bmc_device *bmc = dev_get_drvdata(dev);
return snprintf(buf, 10, "%u\n",
-
bmc->id.device_revision && 0x80
>> 7);
+
(bmc->id.device_revision & 0x80)
>> 7);
}
static ssize_t revision_show(struct device *dev, struct device_attribute *attr,
@@
-1863,7
+1863,7
@@
static ssize_t revision_show(struct device *dev, struct device_attribute *attr,
struct bmc_device *bmc = dev_get_drvdata(dev);
return snprintf(buf, 20, "%u\n",
- bmc->id.device_revision &
&
0x0F);
+ bmc->id.device_revision & 0x0F);
}
static ssize_t firmware_rev_show(struct device *dev,