summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sni_53c710.c
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-10-09 17:11:18 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-10-09 23:35:42 -0400
commit0ee6211408a8e939428f662833c7301394125b80 (patch)
tree3ed5bc43b1b99f5a810c216640cdda7e7ccbfbf3 /drivers/scsi/sni_53c710.c
parentb6ce6fb121a655aefe41dccc077141c102145a37 (diff)
downloadlinux-0ee6211408a8e939428f662833c7301394125b80.tar.bz2
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>
Diffstat (limited to 'drivers/scsi/sni_53c710.c')
-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));