Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181317
b: refs/heads/master
c: 82a72c0
h: refs/heads/master
i:
  181315: 4d6a94b
v: v3
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Feb 17, 2010
1 parent 3f76445 commit c49bb33
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: 01a02ffcd55b74e3459bb7358140970e126d4731
refs/heads/master: 82a72c0a12326a56a323093297e2bad29fe6c29d
4 changes: 2 additions & 2 deletions trunk/drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ static ssize_t raid_level_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
ssize_t l = 0;
int rlevel;
unsigned char rlevel;
struct ctlr_info *h;
struct scsi_device *sdev;
struct hpsa_scsi_dev_t *hdev;
Expand All @@ -455,7 +455,7 @@ static ssize_t raid_level_show(struct device *dev,

rlevel = hdev->raid_level;
spin_unlock_irqrestore(&h->lock, flags);
if (rlevel < 0 || rlevel > RAID_UNKNOWN)
if (rlevel > RAID_UNKNOWN)
rlevel = RAID_UNKNOWN;
l = snprintf(buf, PAGE_SIZE, "RAID %s\n", raid_label[rlevel]);
return l;
Expand Down

0 comments on commit c49bb33

Please sign in to comment.