[PATCH] IPMI: Fix more && typos

From: Corey Minyard
Date: Thu Nov 09 2006 - 15:01:22 EST



Fix improper use of "&&" when "&" was intended.

Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
Signed-off-by: Corey Minyard <minyard@xxxxxxx>

---
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,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/