aboutsummaryrefslogtreecommitdiffstats
path: root/sound/sparc/dbri.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-12-01 04:48:37 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:30:06 -0500
commit8cb7b63f5baf7b5e788f0d632d5ebd018856416f (patch)
treee14b9675eb01d501c53bd2025199c3bb730ca69a /sound/sparc/dbri.c
parent04f141a8800d022981f0405a8d307c98aba55105 (diff)
[ALSA] dbri - Don't return errors without CONFIG_PROC_FS
Modules: SPARC DBRI driver Don't return errors if the proc file can't be created (for the case without CONFIG_PROC_FS). Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/sparc/dbri.c')
-rw-r--r--sound/sparc/dbri.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c
index 293108ee7299..2164b7d290c7 100644
--- a/sound/sparc/dbri.c
+++ b/sound/sparc/dbri.c
@@ -2519,15 +2519,15 @@ static void dbri_debug_read(struct snd_info_entry * entry,
2519void snd_dbri_proc(struct snd_dbri * dbri) 2519void snd_dbri_proc(struct snd_dbri * dbri)
2520{ 2520{
2521 struct snd_info_entry *entry; 2521 struct snd_info_entry *entry;
2522 int err;
2523 2522
2524 err = snd_card_proc_new(dbri->card, "regs", &entry); 2523 if (! snd_card_proc_new(dbri->card, "regs", &entry))
2525 snd_info_set_text_ops(entry, dbri, 1024, dbri_regs_read); 2524 snd_info_set_text_ops(entry, dbri, 1024, dbri_regs_read);
2526 2525
2527#ifdef DBRI_DEBUG 2526#ifdef DBRI_DEBUG
2528 err = snd_card_proc_new(dbri->card, "debug", &entry); 2527 if (! snd_card_proc_new(dbri->card, "debug", &entry)) {
2529 snd_info_set_text_ops(entry, dbri, 4096, dbri_debug_read); 2528 snd_info_set_text_ops(entry, dbri, 4096, dbri_debug_read);
2530 entry->mode = S_IFREG | S_IRUGO; /* Readable only. */ 2529 entry->mode = S_IFREG | S_IRUGO; /* Readable only. */
2530 }
2531#endif 2531#endif
2532} 2532}
2533 2533