mtd: rawnand: sunxi: remove unnecessary oom message
PATCH 1/1 mtd: rawnand: sunxi: 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/nand/raw/sunxi_nand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mtd/nand/raw/sunxi_nand.c +1 -3
@@ -1972,10 +1972,8 @@ static int sunxi_nand_chip_init(struct device *dev, struct sunxi_nfc *nfc, sunxi_nand =devm_kzalloc (dev,struct_size (sunxi_nand, sels, nsels),GFP_KERNEL ); -if (!sunxi_nand) { -dev_err (dev,"could not allocate chip\n" ); +if (!sunxi_nand)return -ENOMEM ; - } sunxi_nand->nsels = nsels;
Signature · 1 line
2.26.0.106.g9fadedd
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/