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>
Subject: [PATCH 3/7] spi: s3c24xx: remove unnecessary OOM messages
Date: Tue, 29 Apr 2014 17:20:02 +0900 [thread overview]
Message-ID: <002701cf6383$d15b4940$7411dbc0$%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-s3c24xx.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c
index bd85181..e713737 100644
--- a/drivers/spi/spi-s3c24xx.c
+++ b/drivers/spi/spi-s3c24xx.c
@@ -185,10 +185,8 @@ static int s3c24xx_spi_setup(struct spi_device *spi)
cs = devm_kzalloc(&spi->dev,
sizeof(struct s3c24xx_spi_devstate),
GFP_KERNEL);
- if (!cs) {
- dev_err(&spi->dev, "no memory for controller state\n");
+ if (!cs)
return -ENOMEM;
- }
cs->spcon = SPCON_DEFAULT;
cs->hz = -1;
--
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
next prev parent reply other threads:[~2014-04-29 8:20 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 ` Jingoo Han [this message]
2014-04-29 8:20 ` [PATCH 4/7] spi: s3c64xx: " Jingoo Han
2014-04-29 8:21 ` [PATCH 5/7] spi: sh-msiof: " Jingoo Han
[not found] ` <002901cf6384$02d9ba10$088d2e30$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-04-29 15:59 ` 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='002701cf6383$d15b4940$7411dbc0$%han@samsung.com' \
--to=jg1.han-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@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).