Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: rfd_ftl: 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 <thunder.leizhen@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210610015052.14864-1-thunder.leizhen@huawei.com

authored by

Zhen Lei and committed by
Miquel Raynal
cba8b3bc 88d12502

+1 -4
+1 -4
drivers/mtd/rfd_ftl.c
··· 192 192 193 193 part->sector_map = vmalloc(array_size(sizeof(u_long), 194 194 part->sector_count)); 195 - if (!part->sector_map) { 196 - printk(KERN_ERR PREFIX "'%s': unable to allocate memory for " 197 - "sector map", part->mbd.mtd->name); 195 + if (!part->sector_map) 198 196 goto err; 199 - } 200 197 201 198 for (i=0; i<part->sector_count; i++) 202 199 part->sector_map[i] = -1;