diff options
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | 2010-02-25 15:03:06 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-03 08:06:18 -0500 |
commit | e9ea04a65ad842452cbee92b5c865af7fed17f63 (patch) | |
tree | 42c7281d28ab00e2922eb85687c405f4279b082d /drivers/scsi | |
parent | 5512672f75611e9239669c6a4dce648b8d60fedd (diff) |
[SCSI] hpsa: return -ENOMEM, not -1
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/hpsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 604b4c95a440..a72a18eabe24 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -1386,7 +1386,7 @@ static int hpsa_send_reset(struct ctlr_info *h, unsigned char *scsi3addr) | |||
1386 | 1386 | ||
1387 | if (c == NULL) { /* trouble... */ | 1387 | if (c == NULL) { /* trouble... */ |
1388 | dev_warn(&h->pdev->dev, "cmd_special_alloc returned NULL!\n"); | 1388 | dev_warn(&h->pdev->dev, "cmd_special_alloc returned NULL!\n"); |
1389 | return -1; | 1389 | return -ENOMEM; |
1390 | } | 1390 | } |
1391 | 1391 | ||
1392 | fill_cmd(c, HPSA_DEVICE_RESET_MSG, h, NULL, 0, 0, scsi3addr, TYPE_MSG); | 1392 | fill_cmd(c, HPSA_DEVICE_RESET_MSG, h, NULL, 0, 0, scsi3addr, TYPE_MSG); |