[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120627090118.GE31212@elgon.mountain>
Date: Wed, 27 Jun 2012 12:01:18 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Matthew Wilcox <matthew@....cx>
Cc: "James E.J. Bottomley" <JBottomley@...allels.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [patch 2/2 -resend] SCSI: advansys: use a subsystem error code
This was supposed to be a subsystem specific error code. It makes
static checkers complain because "warn_code" is unsigned short so it
can't store negatives.
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
---
Originally sent on Tue, 20 Sep 2011.
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index b2c3a1a..4212586 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -4724,7 +4724,7 @@ static ushort AscInitMicroCodeVar(ASC_DVC_VAR *asc_dvc)
asc_dvc->overrun_dma = dma_map_single(board->dev, asc_dvc->overrun_buf,
ASC_OVERRUN_BSIZE, DMA_FROM_DEVICE);
if (dma_mapping_error(board->dev, asc_dvc->overrun_dma)) {
- warn_code = -ENOMEM;
+ warn_code = UW_ERR;
goto err_dma_map;
}
phy_addr = cpu_to_le32(asc_dvc->overrun_dma);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists