[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061109200231.GA8446@localdomain>
Date: Thu, 9 Nov 2006 14:02:31 -0600
From: Corey Minyard <minyard@....org>
To: Linux Kernel <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...l.org>
Cc: Jean Delvare <khali@...ux-fr.org>
Subject: [PATCH] IPMI: Fix more && typos
Fix improper use of "&&" when "&" was intended.
Signed-off-by: Jean Delvare <khali@...ux-fr.org>
Signed-off-by: Corey Minyard <minyard@....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,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists