mtd: amd76xrom: remove unnecessary oom message
PATCH 1/1 mtd: amd76xrom: 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.
Signed-off-by Zhen Lei <[email protected]>
--- drivers/mtd/maps/amd76xrom.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/mtd/maps/amd76xrom.c +2 -4
@@ -189,10 +189,8 @@ static int amd76xrom_init_one(struct pci_dev *pdev,if (!map) { map =kmalloc (sizeof (*map),GFP_KERNEL ); - } -if (!map) { - printk(KERN_ERR MOD_NAME ": kmalloc failed"); - goto out; +if (!map) + goto out; }memset (map,0 ,sizeof (*map));INIT_LIST_HEAD (&map->list);
Signature · 7 lines
2.26.0.106.g9fadedd ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Quoted 6 lines · Zhen Lei
Fixes
scripts/checkpatch.plwarning:
WARNING: Possible unnecessary 'out of memory' messageRemove it can help us save a bit of memory.
Signed-off-by Zhen Lei <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/