Commit ff2b7e2a authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix warnings with CONFIG_SND_POWER_SAVE=n

Use static inline for dummy function to fix the warnings like below
  sound/pci/hda/patch_sigmatel.c: In function ‘stac92xx_init’:
  sound/pci/hda/patch_sigmatel.c:4387:3: warning: statement with no effect
  sound/pci/hda/patch_sigmatel.c: In function ‘stac92xx_resume’:
  sound/pci/hda/patch_sigmatel.c:4927:3: warning: statement with no effect
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 880a050f
...@@ -1011,17 +1011,15 @@ int snd_hda_suspend(struct hda_bus *bus); ...@@ -1011,17 +1011,15 @@ int snd_hda_suspend(struct hda_bus *bus);
int snd_hda_resume(struct hda_bus *bus); int snd_hda_resume(struct hda_bus *bus);
#endif #endif
#ifdef CONFIG_SND_HDA_POWER_SAVE
static inline static inline
int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid)
{ {
#ifdef CONFIG_SND_HDA_POWER_SAVE
if (codec->patch_ops.check_power_status) if (codec->patch_ops.check_power_status)
return codec->patch_ops.check_power_status(codec, nid); return codec->patch_ops.check_power_status(codec, nid);
#endif
return 0; return 0;
} }
#else
#define hda_call_check_power_status(codec, nid) 0
#endif
/* /*
* get widget information * get widget information
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment