* [PATCH] ASoC: rockchip: i2s: Remove unnecessary 'out of memory' message
@ 2017-02-25 10:18 Mihai-Valentin DUMITRU
2017-02-26 8:04 ` Takashi Sakamoto
2017-08-14 16:42 ` Applied "ASoC: rockchip: Delete an error message for a failed memory allocation in rockchip_i2s_probe()" to the asoc tree Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Mihai-Valentin DUMITRU @ 2017-02-25 10:18 UTC (permalink / raw)
To: linux-arm-kernel
This was reported by checkpatch.pl
Signed-off-by: Mihai-Valentin DUMITRU <mihai.dumitru2201@gmail.com>
---
sound/soc/rockchip/rockchip_i2s.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c
index 974915cb4c4f..d02a1045fc0b 100644
--- a/sound/soc/rockchip/rockchip_i2s.c
+++ b/sound/soc/rockchip/rockchip_i2s.c
@@ -551,10 +551,8 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
int val;
i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL);
- if (!i2s) {
- dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n");
+ if (!i2s)
return -ENOMEM;
- }
i2s->dev = &pdev->dev;
--
2.11.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ASoC: rockchip: i2s: Remove unnecessary 'out of memory' message
2017-02-25 10:18 [PATCH] ASoC: rockchip: i2s: Remove unnecessary 'out of memory' message Mihai-Valentin DUMITRU
@ 2017-02-26 8:04 ` Takashi Sakamoto
2017-08-14 16:42 ` Applied "ASoC: rockchip: Delete an error message for a failed memory allocation in rockchip_i2s_probe()" to the asoc tree Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Takashi Sakamoto @ 2017-02-26 8:04 UTC (permalink / raw)
To: linux-arm-kernel
On Feb 25 2017 19:18, Mihai-Valentin DUMITRU wrote:
> This was reported by checkpatch.pl
>
> Signed-off-by: Mihai-Valentin DUMITRU <mihai.dumitru2201@gmail.com>
> ---
> sound/soc/rockchip/rockchip_i2s.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c
> index 974915cb4c4f..d02a1045fc0b 100644
> --- a/sound/soc/rockchip/rockchip_i2s.c
> +++ b/sound/soc/rockchip/rockchip_i2s.c
> @@ -551,10 +551,8 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
> int val;
>
> i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL);
> - if (!i2s) {
> - dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n");
> + if (!i2s)
The line for dev_warn() should be kept.
> return -ENOMEM;
> - }
>
> i2s->dev = &pdev->dev;
Regards
Takashi Sakamoto
^ permalink raw reply [flat|nested] 3+ messages in thread
* Applied "ASoC: rockchip: Delete an error message for a failed memory allocation in rockchip_i2s_probe()" to the asoc tree
2017-02-25 10:18 [PATCH] ASoC: rockchip: i2s: Remove unnecessary 'out of memory' message Mihai-Valentin DUMITRU
2017-02-26 8:04 ` Takashi Sakamoto
@ 2017-08-14 16:42 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2017-08-14 16:42 UTC (permalink / raw)
To: linux-arm-kernel
The patch
ASoC: rockchip: Delete an error message for a failed memory allocation in rockchip_i2s_probe()
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From b48b2710913d583ff93c365413532e1a7cd60d84 Mon Sep 17 00:00:00 2001
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Thu, 10 Aug 2017 18:38:09 +0200
Subject: [PATCH] ASoC: rockchip: Delete an error message for a failed memory
allocation in rockchip_i2s_probe()
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/rockchip/rockchip_i2s.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c
index 199338fdeda0..b6590467fd14 100644
--- a/sound/soc/rockchip/rockchip_i2s.c
+++ b/sound/soc/rockchip/rockchip_i2s.c
@@ -579,10 +579,8 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
int val;
i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL);
- if (!i2s) {
- dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n");
+ if (!i2s)
return -ENOMEM;
- }
i2s->dev = &pdev->dev;
--
2.13.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-14 16:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-25 10:18 [PATCH] ASoC: rockchip: i2s: Remove unnecessary 'out of memory' message Mihai-Valentin DUMITRU
2017-02-26 8:04 ` Takashi Sakamoto
2017-08-14 16:42 ` Applied "ASoC: rockchip: Delete an error message for a failed memory allocation in rockchip_i2s_probe()" to the asoc tree Mark Brown
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).