diff options
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | 2014-05-29 11:54:10 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-06-02 03:55:01 -0400 |
commit | 24a4b07879d6d750ef868b94cbdde510d63a1de9 (patch) | |
tree | b0580803490c0a10b8c611f3b7688279c3001c0b | |
parent | ee6b18890fb680cf4f9036d238ee7eea582421fd (diff) |
hpsa: remove messages about volume status VPD inquiry page not supported
They are annoying and do not help anyone.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Reviewed-by: Justin Lindley <justin.lindley@hp.com>
Reviewed-by: Mike Miller <michael.miller@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/scsi/hpsa.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index a1cec91240ab..c5b24e6cadfe 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -2516,27 +2516,21 @@ static int hpsa_get_volume_status(struct ctlr_info *h, | |||
2516 | return HPSA_VPD_LV_STATUS_UNSUPPORTED; | 2516 | return HPSA_VPD_LV_STATUS_UNSUPPORTED; |
2517 | 2517 | ||
2518 | /* Does controller have VPD for logical volume status? */ | 2518 | /* Does controller have VPD for logical volume status? */ |
2519 | if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_STATUS)) { | 2519 | if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_STATUS)) |
2520 | dev_warn(&h->pdev->dev, "Logical volume status VPD page is unsupported.\n"); | ||
2521 | goto exit_failed; | 2520 | goto exit_failed; |
2522 | } | ||
2523 | 2521 | ||
2524 | /* Get the size of the VPD return buffer */ | 2522 | /* Get the size of the VPD return buffer */ |
2525 | rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, | 2523 | rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, |
2526 | buf, HPSA_VPD_HEADER_SZ); | 2524 | buf, HPSA_VPD_HEADER_SZ); |
2527 | if (rc != 0) { | 2525 | if (rc != 0) |
2528 | dev_warn(&h->pdev->dev, "Logical volume status VPD inquiry failed.\n"); | ||
2529 | goto exit_failed; | 2526 | goto exit_failed; |
2530 | } | ||
2531 | size = buf[3]; | 2527 | size = buf[3]; |
2532 | 2528 | ||
2533 | /* Now get the whole VPD buffer */ | 2529 | /* Now get the whole VPD buffer */ |
2534 | rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, | 2530 | rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS, |
2535 | buf, size + HPSA_VPD_HEADER_SZ); | 2531 | buf, size + HPSA_VPD_HEADER_SZ); |
2536 | if (rc != 0) { | 2532 | if (rc != 0) |
2537 | dev_warn(&h->pdev->dev, "Logical volume status VPD inquiry failed.\n"); | ||
2538 | goto exit_failed; | 2533 | goto exit_failed; |
2539 | } | ||
2540 | status = buf[4]; /* status byte */ | 2534 | status = buf[4]; /* status byte */ |
2541 | 2535 | ||
2542 | kfree(buf); | 2536 | kfree(buf); |