ASoC: rsnd: Delete an error message for a failed memory allocation in three functions
Subsystems (4)
PATCH 1/1 ASoC: rsnd: Delete an error message for a failed memory allocation in three functions
From: Markus Elfring <[email protected]>
Date: Thu, 10 Aug 2017 17:13:19 +0200
Omit an extra message for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
--- sound/soc/sh/rcar/adg.c | 4 +--- sound/soc/sh/rcar/core.c | 4 +--- sound/soc/sh/rcar/gen.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-)
sound/soc/sh/rcar/adg.c +1 -3
@@ -586,10 +586,8 @@ int rsnd_adg_probe(struct rsnd_priv *priv)int ret; adg =devm_kzalloc (dev,sizeof (*adg),GFP_KERNEL ); -if (!adg) { -dev_err (dev,"ADG allocate failed\n" ); +if (!adg)return -ENOMEM ; - } ret =rsnd_mod_init (priv, &adg->mod, &adg_ops,NULL ,NULL ,0 ,0 );
sound/soc/sh/rcar/core.c +1 -3
@@ -1402,10 +1402,8 @@ static int rsnd_probe(struct platform_device *pdev)* init priv data */ priv =devm_kzalloc (dev,sizeof (*priv),GFP_KERNEL ); -if (!priv) { -dev_err (dev,"priv allocate failed\n" ); +if (!priv)return -ENODEV ; - } priv->pdev = pdev; priv->flags = (unsigned long )of_device_get_match_data (dev);
sound/soc/sh/rcar/gen.c +1 -3
@@ -406,10 +406,8 @@ int rsnd_gen_probe(struct rsnd_priv *priv)int ret; gen =devm_kzalloc (dev,sizeof (*gen),GFP_KERNEL ); -if (!gen) { -dev_err (dev,"GEN allocate failed\n" ); +if (!gen)return -ENOMEM ; - } priv->gen = gen;
Signature · 1 line
2.14.0
Mark Brown
maintainerApplied "ASoC: rsnd: Delete an error message for a failed memory allocation in three functions" to the asoc tree
The patch
ASoC: rsnd: Delete an error message for a failed memory allocation in three functions
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
Quoted 1 line
From
0d7820d0918efa6c2a53acdfc47cbfc3b48df727Mon Sep 17 00:00:00 2001
From: Markus Elfring <[email protected]>
Date: Thu, 10 Aug 2017 17:13:19 +0200
Subject: [PATCH] ASoC: rsnd: Delete an error message for a failed memory
allocation in three functions
Omit an extra message for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
--- sound/soc/sh/rcar/adg.c | 4 +--- sound/soc/sh/rcar/core.c | 4 +--- sound/soc/sh/rcar/gen.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-)
sound/soc/sh/rcar/adg.c +1 -3
@@ -586,10 +586,8 @@ int rsnd_adg_probe(struct rsnd_priv *priv)int ret; adg =devm_kzalloc (dev,sizeof (*adg),GFP_KERNEL ); -if (!adg) { -dev_err (dev,"ADG allocate failed\n" ); +if (!adg)return -ENOMEM ; - } ret =rsnd_mod_init (priv, &adg->mod, &adg_ops,NULL ,NULL ,0 ,0 );
sound/soc/sh/rcar/core.c +1 -3
@@ -1401,10 +1401,8 @@ static int rsnd_probe(struct platform_device *pdev)* init priv data */ priv =devm_kzalloc (dev,sizeof (*priv),GFP_KERNEL ); -if (!priv) { -dev_err (dev,"priv allocate failed\n" ); +if (!priv)return -ENODEV ; - } priv->pdev = pdev; priv->flags = (unsigned long )of_device_get_match_data (dev);
sound/soc/sh/rcar/gen.c +1 -3
@@ -406,10 +406,8 @@ int rsnd_gen_probe(struct rsnd_priv *priv)int ret; gen =devm_kzalloc (dev,sizeof (*gen),GFP_KERNEL ); -if (!gen) { -dev_err (dev,"GEN allocate failed\n" ); +if (!gen)return -ENOMEM ; - } priv->gen = gen;
Signature · 1 line
2.13.2