aboutsummaryrefslogtreecommitdiffstats
path: root/sound/i2c/other
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-05-29 01:51:23 -0400
committerTakashi Iwai <tiwai@suse.de>2015-05-29 01:51:23 -0400
commit4bce6fce79b4df8a30478504ca49ebecdffff2b0 (patch)
treefed3f70d0709129a205f25d4fdfa83f5ebd24d10 /sound/i2c/other
parentc43a55d5b1c51436730e2f769f1b90add800a6f1 (diff)
ALSA: ak4xxx-adda: Drop unnecessary ifdef CONFIG_PROC_FS
The compiler can optimize it away if not needed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/i2c/other')
-rw-r--r--sound/i2c/other/ak4xxx-adda.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c
index c65731088aa2..bf377dc192aa 100644
--- a/sound/i2c/other/ak4xxx-adda.c
+++ b/sound/i2c/other/ak4xxx-adda.c
@@ -859,7 +859,6 @@ static int build_deemphasis(struct snd_akm4xxx *ak, int num_emphs)
859 return 0; 859 return 0;
860} 860}
861 861
862#ifdef CONFIG_PROC_FS
863static void proc_regs_read(struct snd_info_entry *entry, 862static void proc_regs_read(struct snd_info_entry *entry,
864 struct snd_info_buffer *buffer) 863 struct snd_info_buffer *buffer)
865{ 864{
@@ -884,9 +883,6 @@ static int proc_init(struct snd_akm4xxx *ak)
884 snd_info_set_text_ops(entry, ak, proc_regs_read); 883 snd_info_set_text_ops(entry, ak, proc_regs_read);
885 return 0; 884 return 0;
886} 885}
887#else /* !CONFIG_PROC_FS */
888static int proc_init(struct snd_akm4xxx *ak) { return 0; }
889#endif
890 886
891int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak) 887int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak)
892{ 888{