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@xxxxxxxxxx> --- 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-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html