projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a9a72e
)
ASoC: Intel: catpt: Reduce size of catpt_component_open()
author
Cezary Rojewski
<cezary.rojewski@intel.com>
Thu, 16 Dec 2021 11:57:40 +0000
(12:57 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 17 Dec 2021 16:20:37 +0000
(16:20 +0000)
With some improved if-logy, function's size can be reduced slightly.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link:
https://lore.kernel.org/r/20211216115743.2130622-3-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/catpt/pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/catpt/pcm.c
b/sound/soc/intel/catpt/pcm.c
index
ebb27da
..
16146c6
100644
(file)
--- a/
sound/soc/intel/catpt/pcm.c
+++ b/
sound/soc/intel/catpt/pcm.c
@@
-595,9
+595,8
@@
static int catpt_component_open(struct snd_soc_component *component,
{
struct snd_soc_pcm_runtime *rtm = substream->private_data;
- if (rtm->dai_link->no_pcm)
- return 0;
- snd_soc_set_runtime_hwparams(substream, &catpt_pcm_hardware);
+ if (!rtm->dai_link->no_pcm)
+ snd_soc_set_runtime_hwparams(substream, &catpt_pcm_hardware);
return 0;
}