Commit 2308f4add3de9f6c9c9f02e49461e94d84bb200a

Authored by Joe Perches
Committed by Takashi Iwai
1 parent 54463a66b9

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>

Showing 1 changed file with 7 additions and 2 deletions Side-by-side Diff

sound/pci/hda/hda_beep.h
... ... @@ -50,8 +50,13 @@
50 50 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
51 51 void snd_hda_detach_beep_device(struct hda_codec *codec);
52 52 #else
53   -#define snd_hda_attach_beep_device(...) 0
54   -#define snd_hda_detach_beep_device(...)
  53 +static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
  54 +{
  55 + return 0;
  56 +}
  57 +void snd_hda_detach_beep_device(struct hda_codec *codec)
  58 +{
  59 +}
55 60 #endif
56 61 #endif