* [PATCH 1/1] scsi: mvme16x: remove unnecessary oom message
@ 2021-06-10 8:01 Zhen Lei
0 siblings, 0 replies; only message in thread
From: Zhen Lei @ 2021-06-10 8:01 UTC (permalink / raw
To: James E . J . Bottomley, Martin K . Petersen, linux-scsi; +Cc: Zhen Lei
Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message
Remove it can help us save a bit of memory.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
drivers/scsi/mvme16x_scsi.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/scsi/mvme16x_scsi.c b/drivers/scsi/mvme16x_scsi.c
index 21d638299ab8e56..5c2f5aa572d5677 100644
--- a/drivers/scsi/mvme16x_scsi.c
+++ b/drivers/scsi/mvme16x_scsi.c
@@ -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;
--
2.26.0.106.g9fadedd
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-10 8:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-10 8:01 [PATCH 1/1] scsi: mvme16x: remove unnecessary oom message Zhen Lei
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.