aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-10-09 17:11:18 +0200
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2019-10-26 16:01:37 +0530
commitb13f46490e4fff80048245137bb4965240e09b76 (patch)
treed4639175cb0814aa5e00e47e12d05071ca1487ad
parentcae25ff1da76d36a5b22837170b43e1ed3fd97ba (diff)
download96b-common-b13f46490e4fff80048245137bb4965240e09b76.tar.gz
scsi: sni_53c710: fix compilation error
Drop out memory dev_printk() with wrong device pointer argument. [mkp: typo] Link: https://lore.kernel.org/r/20191009151118.32350-1-tbogendoerfer@suse.de Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/sni_53c710.c4
1 files changed, 1 insertions, 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));