Commit 8ef02913 authored by Zhen Lei's avatar Zhen Lei Committed by Miquel Raynal
Browse files

mtd: nftl: 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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210610020130.14917-1-thunder.leizhen@huawei.com
parent cba8b3bc
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -188,17 +188,14 @@ device is already correct.
		/* memory alloc */
		nftl->EUNtable = kmalloc_array(nftl->nb_blocks, sizeof(u16),
					       GFP_KERNEL);
		if (!nftl->EUNtable) {
			printk(KERN_NOTICE "NFTL: allocation of EUNtable failed\n");
		if (!nftl->EUNtable)
			return -ENOMEM;
		}

		nftl->ReplUnitTable = kmalloc_array(nftl->nb_blocks,
						    sizeof(u16),
						    GFP_KERNEL);
		if (!nftl->ReplUnitTable) {
			kfree(nftl->EUNtable);
			printk(KERN_NOTICE "NFTL: allocation of ReplUnitTable failed\n");
			return -ENOMEM;
		}