Skip to content

Commit

Permalink
ASoC: soc-core: tidyup empty function
Browse files Browse the repository at this point in the history
This patch makes empty function to 1 line.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87fsszt7dd.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Oct 18, 2021
1 parent 01e90ee commit 41b1774
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,31 +229,12 @@ static void snd_soc_debugfs_exit(void)

#else

static inline void soc_init_component_debugfs(
struct snd_soc_component *component)
{
}

static inline void soc_cleanup_component_debugfs(
struct snd_soc_component *component)
{
}

static inline void soc_init_card_debugfs(struct snd_soc_card *card)
{
}

static inline void soc_cleanup_card_debugfs(struct snd_soc_card *card)
{
}

static inline void snd_soc_debugfs_init(void)
{
}

static inline void snd_soc_debugfs_exit(void)
{
}
static inline void soc_init_component_debugfs(struct snd_soc_component *component) { }
static inline void soc_cleanup_component_debugfs(struct snd_soc_component *component) { }
static inline void soc_init_card_debugfs(struct snd_soc_card *card) { }
static inline void soc_cleanup_card_debugfs(struct snd_soc_card *card) { }
static inline void snd_soc_debugfs_init(void) { }
static inline void snd_soc_debugfs_exit(void) { }

#endif

Expand Down Expand Up @@ -739,9 +720,7 @@ static void soc_resume_init(struct snd_soc_card *card)
#else
#define snd_soc_suspend NULL
#define snd_soc_resume NULL
static inline void soc_resume_init(struct snd_soc_card *card)
{
}
static inline void soc_resume_init(struct snd_soc_card *card) { }
#endif

static struct device_node
Expand Down

0 comments on commit 41b1774

Please sign in to comment.