* [PATCH] IPMI: Fix more && typos
@ 2006-11-09 20:02 Corey Minyard
0 siblings, 0 replies; only message in thread
From: Corey Minyard @ 2006-11-09 20:02 UTC (permalink / raw)
To: Linux Kernel, Andrew Morton; +Cc: Jean Delvare
Fix improper use of "&&" when "&" was intended.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Corey Minyard <minyard@acm.org>
---
drivers/char/ipmi/ipmi_msghandler.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.19-rc5.orig/drivers/char/ipmi/ipmi_msghandler.c 2006-11-09 18:43:18.000000000 +0100
+++ linux-2.6.19-rc5/drivers/char/ipmi/ipmi_msghandler.c 2006-11-09 18:44:01.000000000 +0100
@@ -1854,7 +1854,7 @@
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 @@
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-09 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-09 20:02 [PATCH] IPMI: Fix more && typos Corey Minyard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®