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

mtd: mtdoops: 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/20210610021201.15076-1-thunder.leizhen@huawei.com

authored by

Zhen Lei and committed by
Miquel Raynal
313ea21a 18567523

+1 -3
+1 -3
drivers/mtd/mtdoops.c
··· 401 401 cxt->mtd_index = mtd_index; 402 402 403 403 cxt->oops_buf = vmalloc(record_size); 404 - if (!cxt->oops_buf) { 405 - printk(KERN_ERR "mtdoops: failed to allocate buffer workspace\n"); 404 + if (!cxt->oops_buf) 406 405 return -ENOMEM; 407 - } 408 406 memset(cxt->oops_buf, 0xff, record_size); 409 407 cxt->oops_buf_busy = 0; 410 408