Skip to content

Commit

Permalink
ALSA: hda - Fix beep_device compilation warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
JoePerches authored and tiwai committed Jun 13, 2011
1 parent 54463a6 commit 2308f4a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sound/pci/hda/hda_beep.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
void snd_hda_detach_beep_device(struct hda_codec *codec);
#else
#define snd_hda_attach_beep_device(...) 0
#define snd_hda_detach_beep_device(...)
static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
{
return 0;
}
void snd_hda_detach_beep_device(struct hda_codec *codec)
{
}
#endif
#endif

0 comments on commit 2308f4a

Please sign in to comment.