Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40842
b: refs/heads/master
c: 7947d2c
h: refs/heads/master
v: v3
  • Loading branch information
Corey Minyard authored and Linus Torvalds committed Nov 13, 2006
1 parent c662049 commit dfbf02e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a4b0fc503ff4149f5915be4aeb179b9453cf485
refs/heads/master: 7947d2cc2c2e01125a393de83862d02b621999fe
4 changes: 2 additions & 2 deletions trunk/drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit dfbf02e

Please sign in to comment.