projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
313ea21
)
mtd: sun_uflash: remove unnecessary oom message
author
Zhen Lei
<thunder.leizhen@huawei.com>
Thu, 10 Jun 2021 02:14:00 +0000
(10:14 +0800)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Fri, 11 Jun 2021 18:43:52 +0000
(20:43 +0200)
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>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20210610021400.15132-1-thunder.leizhen@huawei.com
drivers/mtd/maps/sun_uflash.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/sun_uflash.c
b/drivers/mtd/maps/sun_uflash.c
index
f9cfb08
..
6c0c91b
100644
(file)
--- a/
drivers/mtd/maps/sun_uflash.c
+++ b/
drivers/mtd/maps/sun_uflash.c
@@
-62,10
+62,8
@@
int uflash_devinit(struct platform_device *op, struct device_node *dp)
}
up = kzalloc(sizeof(struct uflash_dev), GFP_KERNEL);
- if (!up) {
- printk(KERN_ERR PFX "Cannot allocate struct uflash_dev\n");
+ if (!up)
return -ENOMEM;
- }
/* copy defaults and tweak parameters */
memcpy(&up->map, &uflash_map_templ, sizeof(uflash_map_templ));