Skip to content

Commit

Permalink
[ALSA] sound/core.h: evil #ifdefs
Browse files Browse the repository at this point in the history
snd_minor_info_oss_* is an function returning int _or_ comment,
depending on config parameters. That is truly evil, fix it.

Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Pavel Machek authored and tiwai committed Apr 24, 2008
1 parent a8bb1ba commit ad5fada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/sound/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ int snd_minor_info_done(void);
int snd_minor_info_oss_init(void);
int snd_minor_info_oss_done(void);
#else
#define snd_minor_info_oss_init() /*NOP*/
#define snd_minor_info_oss_done() /*NOP*/
static inline int snd_minor_info_oss_init(void) { return 0; }
static inline int snd_minor_info_oss_done(void) { return 0; }
#endif

/* memory.c */
Expand Down

0 comments on commit ad5fada

Please sign in to comment.