linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
To: 'Mark Brown' <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	'Jingoo Han' <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	'Geert Uytterhoeven'
	<geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>,
	'Magnus Damm' <damm-yzvPICuk2ACczHhG9Qg4qA@public.gmane.org>
Subject: [PATCH 5/7] spi: sh-msiof: remove unnecessary OOM messages
Date: Tue, 29 Apr 2014 17:21:25 +0900	[thread overview]
Message-ID: <002901cf6384$02d9ba10$088d2e30$%han@samsung.com> (raw)
In-Reply-To: <002401cf6383$7e9ce1f0$7bd6a5d0$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>

The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
---
 drivers/spi/spi-sh-msiof.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index e850d03..45b0914 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -642,10 +642,8 @@ static struct sh_msiof_spi_info *sh_msiof_spi_parse_dt(struct device *dev)
 	u32 num_cs = 1;
 
 	info = devm_kzalloc(dev, sizeof(struct sh_msiof_spi_info), GFP_KERNEL);
-	if (!info) {
-		dev_err(dev, "failed to allocate setup data\n");
+	if (!info)
 		return NULL;
-	}
 
 	/* Parse the MSIOF properties */
 	of_property_read_u32(np, "num-cs", &num_cs);
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-04-29  8:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-29  8:17 [PATCH 0/7] spi: remove unnecessary OOM messages Jingoo Han
     [not found] ` <002401cf6383$7e9ce1f0$7bd6a5d0$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-04-29  8:19   ` [PATCH 1/7] spi: pl022: " Jingoo Han
     [not found]     ` <002501cf6383$ad1ae400$0750ac00$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-05-03 21:48       ` Linus Walleij
2014-04-29  8:19   ` [PATCH 2/7] spi: pxa2xx: " Jingoo Han
2014-04-29  8:20   ` [PATCH 3/7] spi: s3c24xx: " Jingoo Han
2014-04-29  8:20   ` [PATCH 4/7] spi: s3c64xx: " Jingoo Han
2014-04-29  8:21   ` Jingoo Han [this message]
     [not found]     ` <002901cf6384$02d9ba10$088d2e30$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-04-29 15:59       ` [PATCH 5/7] spi: sh-msiof: " Geert Uytterhoeven
2014-04-29  8:22   ` [PATCH 6/7] spi: tle62x0: " Jingoo Han
2014-04-29  8:23   ` [PATCH 7/7] spi: topcliff-pch: " Jingoo Han
2014-04-29 19:03   ` [PATCH 0/7] spi: " Mark Brown

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='002901cf6384$02d9ba10$088d2e30$%han@samsung.com' \
    --to=jg1.han-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=damm-yzvPICuk2ACczHhG9Qg4qA@public.gmane.org \
    --cc=geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.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).