From: Roland Stigge <stigge@antcom.de>
To: Jingoo Han <jg1.han@samsung.com>
Cc: linux-mtd@lists.infradead.org,
'Brian Norris' <computersforpeace@gmail.com>,
'David Woodhouse' <dwmw2@infradead.org>
Subject: Re: [PATCH 19/23] mtd: lpc32xx_slc: Remove unnecessary OOM messages
Date: Thu, 26 Dec 2013 11:30:55 +0100 [thread overview]
Message-ID: <52BC055F.3010501@antcom.de> (raw)
In-Reply-To: <009601cf01e9$365bb020$a3131060$%han@samsung.com>
On 26/12/13 04:18, Jingoo Han wrote:
> The site-specific OOM messages are unnecessary, because they
> duplicate the MM subsystem generic OOM message.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Roland Stigge <stigge@antcom.de>
> ---
> drivers/mtd/nand/lpc32xx_slc.c | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/mtd/nand/lpc32xx_slc.c b/drivers/mtd/nand/lpc32xx_slc.c
> index 5f20394..53a6742 100644
> --- a/drivers/mtd/nand/lpc32xx_slc.c
> +++ b/drivers/mtd/nand/lpc32xx_slc.c
> @@ -725,10 +725,8 @@ static struct lpc32xx_nand_cfg_slc *lpc32xx_parse_dt(struct device *dev)
> struct device_node *np = dev->of_node;
>
> ncfg = devm_kzalloc(dev, sizeof(*ncfg), GFP_KERNEL);
> - if (!ncfg) {
> - dev_err(dev, "could not allocate memory for NAND config\n");
> + if (!ncfg)
> return NULL;
> - }
>
> of_property_read_u32(np, "nxp,wdr-clks", &ncfg->wdr_clks);
> of_property_read_u32(np, "nxp,wwidth", &ncfg->wwidth);
> @@ -772,10 +770,8 @@ static int lpc32xx_nand_probe(struct platform_device *pdev)
>
> /* Allocate memory for the device structure (and zero it) */
> host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
> - if (!host) {
> - dev_err(&pdev->dev, "failed to allocate device structure\n");
> + if (!host)
> return -ENOMEM;
> - }
> host->io_base_dma = rc->start;
>
> host->io_base = devm_ioremap_resource(&pdev->dev, rc);
> @@ -858,7 +854,6 @@ static int lpc32xx_nand_probe(struct platform_device *pdev)
> host->data_buf = devm_kzalloc(&pdev->dev, host->dma_buf_len,
> GFP_KERNEL);
> if (host->data_buf == NULL) {
> - dev_err(&pdev->dev, "Error allocating memory\n");
> res = -ENOMEM;
> goto err_exit2;
> }
>
next prev parent reply other threads:[~2013-12-26 10:31 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-26 2:58 [PATCH 00/23] mtd: nand: Remove unnecessary OOM messages Jingoo Han
2013-12-26 3:00 ` [PATCH 01/23] mtd: atmel_nand: " Jingoo Han
2013-12-27 6:55 ` Josh Wu
2013-12-26 3:00 ` [PATCH 02/23] mtd: orion_nand: " Jingoo Han
2013-12-26 3:01 ` [PATCH 03/23] mtd: sharpsl: " Jingoo Han
2013-12-26 3:02 ` [PATCH 04/23] mtd: au1550nd: " Jingoo Han
2013-12-26 3:04 ` [PATCH 05/23] mtd: bf5xx_nand: " Jingoo Han
2013-12-26 7:53 ` Mike Frysinger
2013-12-26 3:04 ` [PATCH 06/23] mtd: cafe_nand: " Jingoo Han
2013-12-26 3:06 ` [PATCH 07/23] mtd: cmx270_nand: " Jingoo Han
2013-12-26 3:06 ` [PATCH 08/23] mtd: cs553x_nand: " Jingoo Han
2013-12-26 3:07 ` [PATCH 09/23] mtd: diskonchip: " Jingoo Han
2013-12-26 3:08 ` [PATCH 10/23] mtd: fsl_elbc_nand: " Jingoo Han
2013-12-26 3:09 ` [PATCH 11/23] mtd: fsl_ifc_nand: " Jingoo Han
2013-12-26 3:09 ` [PATCH 12/23] mtd: jz4740_nand: " Jingoo Han
2013-12-26 3:11 ` [PATCH 13/23] mtd: pasemi_nand: " Jingoo Han
2013-12-27 5:43 ` Olof Johansson
2013-12-27 5:49 ` Jingoo Han
2013-12-26 3:12 ` [PATCH 14/23] mtd: txx9ndfmc: " Jingoo Han
2013-12-26 3:13 ` [PATCH 15/23] mtd: davinci_nand: " Jingoo Han
2013-12-26 3:16 ` [PATCH 16/23] mtd: fsmc_nand: " Jingoo Han
2014-01-07 17:55 ` Linus Walleij
2013-12-26 3:17 ` [PATCH 17/23] mtd: nand-gpio: " Jingoo Han
2013-12-26 3:18 ` [PATCH 18/23] mtd: lpc32xx_mlc: " Jingoo Han
2013-12-26 10:30 ` Roland Stigge
2013-12-26 3:18 ` [PATCH 19/23] mtd: lpc32xx_slc: " Jingoo Han
2013-12-26 10:30 ` Roland Stigge [this message]
2013-12-26 3:19 ` [PATCH 20/23] mtd: mpc5121_nfc: " Jingoo Han
2013-12-26 3:21 ` [PATCH 21/23] mtd: plat_nand: " Jingoo Han
2013-12-26 3:21 ` [PATCH 22/23] mtd: s3c2410: " Jingoo Han
2013-12-26 3:22 ` [PATCH 23/23] mtd: sh_flctl: " Jingoo Han
2014-01-03 1:30 ` [PATCH 00/23] mtd: nand: " Brian Norris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52BC055F.3010501@antcom.de \
--to=stigge@antcom.de \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=jg1.han@samsung.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).