All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ASoC: Intel: Skylake: change list empty check to warning
@ 2019-04-25 21:57 Patrick Waterlander
  2019-04-29 13:05 ` Pierre-Louis Bossart
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Waterlander @ 2019-04-25 21:57 UTC (permalink / raw)
  To: patch; +Cc: alsa-devel, Patrick Waterlander

NULL is a valid state for the module list when querying unique ID.
Downgrade the empty condition from error to warning.

Signed-off-by: Patrick Waterlander <patrick.waterlander@intel.com>

diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c
index 5951bbdf1f1a..95e6a23538cd 100644
--- a/sound/soc/intel/skylake/skl-sst.c
+++ b/sound/soc/intel/skylake/skl-sst.c
@@ -324,7 +324,7 @@ static struct skl_module_table *skl_module_get_from_id(
 	struct skl_module_table *module;
 
 	if (list_empty(&ctx->module_list)) {
-		dev_err(ctx->dev, "Module list is empty\n");
+		dev_warn(ctx->dev, "Module list is empty\n");
 		return NULL;
 	}
 
-- 
2.17.1

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

* Re: [PATCH 1/1] ASoC: Intel: Skylake: change list empty check to warning
  2019-04-25 21:57 [PATCH 1/1] ASoC: Intel: Skylake: change list empty check to warning Patrick Waterlander
@ 2019-04-29 13:05 ` Pierre-Louis Bossart
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre-Louis Bossart @ 2019-04-29 13:05 UTC (permalink / raw)
  To: Patrick Waterlander, patch; +Cc: alsa-devel, Kaczmarski, Filip

On 4/25/19 4:57 PM, Patrick Waterlander wrote:
> NULL is a valid state for the module list when querying unique ID.
> Downgrade the empty condition from error to warning.
> 
> Signed-off-by: Patrick Waterlander <patrick.waterlander@intel.com>
> 
> diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c
> index 5951bbdf1f1a..95e6a23538cd 100644
> --- a/sound/soc/intel/skylake/skl-sst.c
> +++ b/sound/soc/intel/skylake/skl-sst.c
> @@ -324,7 +324,7 @@ static struct skl_module_table *skl_module_get_from_id(
>   	struct skl_module_table *module;
>   
>   	if (list_empty(&ctx->module_list)) {
> -		dev_err(ctx->dev, "Module list is empty\n");
> +		dev_warn(ctx->dev, "Module list is empty\n");

Not sure what you are trying to fix here? Either it's an error and we 
can keep the message as is or it's not and that trace should go away. 
Changing the level doesn't really add much value, does it?

You should run this by Filip's team (CC:ed) and copy maintainers.

>   		return NULL;
>   	}
>   
> 

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

end of thread, other threads:[~2019-04-29 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-25 21:57 [PATCH 1/1] ASoC: Intel: Skylake: change list empty check to warning Patrick Waterlander
2019-04-29 13:05 ` Pierre-Louis Bossart

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.