mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
ALSA: hda - Fix beep_device compilation warnings
Using static inline functions can reduce compilation messages and macro misuse. sound/pci/hda/patch_conexant.c: In function ‘patch_cxt5045’: sound/pci/hda/patch_conexant.c:1232:3: warning: statement with no effect Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
54463a66b9
commit
2308f4add3
1 changed files with 7 additions and 2 deletions
|
@ -50,7 +50,12 @@ int snd_hda_enable_beep_device(struct hda_codec *codec, int enable);
|
||||||
int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
|
int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
|
||||||
void snd_hda_detach_beep_device(struct hda_codec *codec);
|
void snd_hda_detach_beep_device(struct hda_codec *codec);
|
||||||
#else
|
#else
|
||||||
#define snd_hda_attach_beep_device(...) 0
|
static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
|
||||||
#define snd_hda_detach_beep_device(...)
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
void snd_hda_detach_beep_device(struct hda_codec *codec)
|
||||||
|
{
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue