Skip to contentSkip to conversation

scsi: mvme16x: remove unnecessary oom message

PATCH New Zhen Lei 1 participant 1 message Jun 10, 2021 SCSI

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 scsi: mvme16x: remove unnecessary oom message

Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

---
 drivers/scsi/mvme16x_scsi.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/scsi/mvme16x_scsi.c +1 -4
index 21d638299ab8e56..5c2f5aa572d5677 100644
@@ -50,11 +50,8 @@ static int mvme16x_probe(struct platform_device *dev)
 	}
 
 	hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL);
-	if (hostdata == NULL) {
-		printk(KERN_ERR "mvme16x-scsi: "
-				"Failed to allocate host data\n");
+	if (!hostdata)
 		goto out;
-	}
 
 	/* Fill in the required pieces of hostdata */
 	hostdata->base = (void __iomem *)0xfff47000UL;
Signature · 1 line
2.26.0.106.g9fadedd