Commit cba8b3bc authored by Zhen Lei's avatar Zhen Lei Committed by Miquel Raynal

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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210610015052.14864-1-thunder.leizhen@huawei.com
parent 88d12502
...@@ -192,11 +192,8 @@ static int scan_header(struct partition *part) ...@@ -192,11 +192,8 @@ static int scan_header(struct partition *part)
part->sector_map = vmalloc(array_size(sizeof(u_long), part->sector_map = vmalloc(array_size(sizeof(u_long),
part->sector_count)); part->sector_count));
if (!part->sector_map) { if (!part->sector_map)
printk(KERN_ERR PREFIX "'%s': unable to allocate memory for "
"sector map", part->mbd.mtd->name);
goto err; goto err;
}
for (i=0; i<part->sector_count; i++) for (i=0; i<part->sector_count; i++)
part->sector_map[i] = -1; part->sector_map[i] = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment