All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ASoC: Intel: bdw-rt5677: remove unnecessary oom message
@ 2021-06-17 10:35 Zhen Lei
  2021-06-17 14:09 ` Pierre-Louis Bossart
  2021-06-18 12:07 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Zhen Lei @ 2021-06-17 10:35 UTC (permalink / raw)
  To: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Jie Yang,
	Mark Brown, Jaroslav Kysela, Takashi Iwai, alsa-devel
  Cc: Zhen Lei

Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 sound/soc/intel/boards/bdw-rt5677.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/intel/boards/bdw-rt5677.c b/sound/soc/intel/boards/bdw-rt5677.c
index 021bc59aac80..e01b7a90ca6c 100644
--- a/sound/soc/intel/boards/bdw-rt5677.c
+++ b/sound/soc/intel/boards/bdw-rt5677.c
@@ -423,10 +423,8 @@ static int bdw_rt5677_probe(struct platform_device *pdev)
 	/* Allocate driver private struct */
 	bdw_rt5677 = devm_kzalloc(&pdev->dev, sizeof(struct bdw_rt5677_priv),
 		GFP_KERNEL);
-	if (!bdw_rt5677) {
-		dev_err(&pdev->dev, "Can't allocate bdw_rt5677\n");
+	if (!bdw_rt5677)
 		return -ENOMEM;
-	}
 
 	/* override plaform name, if required */
 	mach = pdev->dev.platform_data;
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] ASoC: Intel: bdw-rt5677: remove unnecessary oom message
  2021-06-17 10:35 [PATCH 1/1] ASoC: Intel: bdw-rt5677: remove unnecessary oom message Zhen Lei
@ 2021-06-17 14:09 ` Pierre-Louis Bossart
  2021-06-18 12:07 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre-Louis Bossart @ 2021-06-17 14:09 UTC (permalink / raw)
  To: Zhen Lei, Cezary Rojewski, Liam Girdwood, Jie Yang, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, alsa-devel



On 6/17/21 5:35 AM, Zhen Lei wrote:
> Fixes scripts/checkpatch.pl warning:
> WARNING: Possible unnecessary 'out of memory' message
> 
> Remove it can help us save a bit of memory.
> 
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

> ---
>  sound/soc/intel/boards/bdw-rt5677.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/sound/soc/intel/boards/bdw-rt5677.c b/sound/soc/intel/boards/bdw-rt5677.c
> index 021bc59aac80..e01b7a90ca6c 100644
> --- a/sound/soc/intel/boards/bdw-rt5677.c
> +++ b/sound/soc/intel/boards/bdw-rt5677.c
> @@ -423,10 +423,8 @@ static int bdw_rt5677_probe(struct platform_device *pdev)
>  	/* Allocate driver private struct */
>  	bdw_rt5677 = devm_kzalloc(&pdev->dev, sizeof(struct bdw_rt5677_priv),
>  		GFP_KERNEL);
> -	if (!bdw_rt5677) {
> -		dev_err(&pdev->dev, "Can't allocate bdw_rt5677\n");
> +	if (!bdw_rt5677)
>  		return -ENOMEM;
> -	}
>  
>  	/* override plaform name, if required */
>  	mach = pdev->dev.platform_data;
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] ASoC: Intel: bdw-rt5677: remove unnecessary oom message
  2021-06-17 10:35 [PATCH 1/1] ASoC: Intel: bdw-rt5677: remove unnecessary oom message Zhen Lei
  2021-06-17 14:09 ` Pierre-Louis Bossart
@ 2021-06-18 12:07 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2021-06-18 12:07 UTC (permalink / raw)
  To: alsa-devel, Liam Girdwood, Zhen Lei, Jie Yang, Jaroslav Kysela,
	Takashi Iwai, Cezary Rojewski, Pierre-Louis Bossart
  Cc: Mark Brown

On Thu, 17 Jun 2021 18:35:38 +0800, Zhen Lei wrote:
> Fixes scripts/checkpatch.pl warning:
> WARNING: Possible unnecessary 'out of memory' message
> 
> Remove it can help us save a bit of memory.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: Intel: bdw-rt5677: remove unnecessary oom message
      commit: c5ad09a346651c4612668e2da68b8ebf78d66fd4

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-18 12:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 10:35 [PATCH 1/1] ASoC: Intel: bdw-rt5677: remove unnecessary oom message Zhen Lei
2021-06-17 14:09 ` Pierre-Louis Bossart
2021-06-18 12:07 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.