[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191009151118.32350-1-tbogendoerfer@suse.de>
Date: Wed, 9 Oct 2019 17:11:18 +0200
From: Thomas Bogendoerfer <tbogendoerfer@...e.de>
To: "James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] scsi: sni_53c710 fix compilation error
Drop out memory dev_printk() with wring device pointer argument.
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@...e.de>
---
drivers/scsi/sni_53c710.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/scsi/sni_53c710.c b/drivers/scsi/sni_53c710.c
index aef4881d8e21..a85d52b5dc32 100644
--- a/drivers/scsi/sni_53c710.c
+++ b/drivers/scsi/sni_53c710.c
@@ -66,10 +66,8 @@ static int snirm710_probe(struct platform_device *dev)
base = res->start;
hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL);
- if (!hostdata) {
- dev_printk(KERN_ERR, dev, "Failed to allocate host data\n");
+ if (!hostdata)
return -ENOMEM;
- }
hostdata->dev = &dev->dev;
dma_set_mask(&dev->dev, DMA_BIT_MASK(32));
--
2.16.4
Powered by blists - more mailing lists