]> git.karo-electronics.de Git - linux-beck.git/commitdiff
hpsa: remove messages about volume status VPD inquiry page not supported
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 29 May 2014 15:54:10 +0000 (10:54 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 2 Jun 2014 07:55:01 +0000 (09:55 +0200)
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>
drivers/scsi/hpsa.c

index a1cec91240ab83ef7c554e3fe90c63e9cdc53af9..c5b24e6cadfe5fced047e9ed3bf52974c8ceaa5d 100644 (file)
@@ -2516,27 +2516,21 @@ static int hpsa_get_volume_status(struct ctlr_info *h,
                return HPSA_VPD_LV_STATUS_UNSUPPORTED;
 
        /* Does controller have VPD for logical volume status? */
-       if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_STATUS)) {
-               dev_warn(&h->pdev->dev, "Logical volume status VPD page is unsupported.\n");
+       if (!hpsa_vpd_page_supported(h, scsi3addr, HPSA_VPD_LV_STATUS))
                goto exit_failed;
-       }
 
        /* Get the size of the VPD return buffer */
        rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS,
                                        buf, HPSA_VPD_HEADER_SZ);
-       if (rc != 0) {
-               dev_warn(&h->pdev->dev, "Logical volume status VPD inquiry failed.\n");
+       if (rc != 0)
                goto exit_failed;
-       }
        size = buf[3];
 
        /* Now get the whole VPD buffer */
        rc = hpsa_scsi_do_inquiry(h, scsi3addr, VPD_PAGE | HPSA_VPD_LV_STATUS,
                                        buf, size + HPSA_VPD_HEADER_SZ);
-       if (rc != 0) {
-               dev_warn(&h->pdev->dev, "Logical volume status VPD inquiry failed.\n");
+       if (rc != 0)
                goto exit_failed;
-       }
        status = buf[4]; /* status byte */
 
        kfree(buf);