diff options
author | Joe Perches <joe@perches.com> | 2011-06-12 16:02:43 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-06-13 02:36:26 -0400 |
commit | 2308f4add3de9f6c9c9f02e49461e94d84bb200a (patch) | |
tree | f60859c149a492f0f467c7358df0f85465abc0de /sound | |
parent | 54463a66b91cf491a7c9af612b0e310babc5fa24 (diff) |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_beep.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_beep.h b/sound/pci/hda/hda_beep.h index f1de1bac042c..4967eabe774e 100644 --- a/sound/pci/hda/hda_beep.h +++ b/sound/pci/hda/hda_beep.h | |||
@@ -50,7 +50,12 @@ int snd_hda_enable_beep_device(struct hda_codec *codec, int enable); | |||
50 | int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); | 50 | int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); |
51 | void snd_hda_detach_beep_device(struct hda_codec *codec); | 51 | void snd_hda_detach_beep_device(struct hda_codec *codec); |
52 | #else | 52 | #else |
53 | #define snd_hda_attach_beep_device(...) 0 | 53 | static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) |
54 | #define snd_hda_detach_beep_device(...) | 54 | { |
55 | return 0; | ||
56 | } | ||
57 | void snd_hda_detach_beep_device(struct hda_codec *codec) | ||
58 | { | ||
59 | } | ||
55 | #endif | 60 | #endif |
56 | #endif | 61 | #endif |