Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
ALSA: ak4xxx-adda: Drop unnecessary ifdef CONFIG_PROC_FS
Browse files Browse the repository at this point in the history
The compiler can optimize it away if not needed.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed May 29, 2015
1 parent c43a55d commit 4bce6fc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/i2c/other/ak4xxx-adda.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,6 @@ static int build_deemphasis(struct snd_akm4xxx *ak, int num_emphs)
return 0;
}

#ifdef CONFIG_PROC_FS
static void proc_regs_read(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{
Expand All @@ -884,9 +883,6 @@ static int proc_init(struct snd_akm4xxx *ak)
snd_info_set_text_ops(entry, ak, proc_regs_read);
return 0;
}
#else /* !CONFIG_PROC_FS */
static int proc_init(struct snd_akm4xxx *ak) { return 0; }
#endif

int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak)
{
Expand Down

0 comments on commit 4bce6fc

Please sign in to comment.