Commit 8cb7b63f authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[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: default avatarTakashi Iwai <tiwai@suse.de>
parent 04f141a8
...@@ -2519,15 +2519,15 @@ static void dbri_debug_read(struct snd_info_entry * entry, ...@@ -2519,15 +2519,15 @@ static void dbri_debug_read(struct snd_info_entry * entry,
void snd_dbri_proc(struct snd_dbri * dbri) void snd_dbri_proc(struct snd_dbri * dbri)
{ {
struct snd_info_entry *entry; struct snd_info_entry *entry;
int err;
err = snd_card_proc_new(dbri->card, "regs", &entry); if (! snd_card_proc_new(dbri->card, "regs", &entry))
snd_info_set_text_ops(entry, dbri, 1024, dbri_regs_read); snd_info_set_text_ops(entry, dbri, 1024, dbri_regs_read);
#ifdef DBRI_DEBUG #ifdef DBRI_DEBUG
err = snd_card_proc_new(dbri->card, "debug", &entry); if (! snd_card_proc_new(dbri->card, "debug", &entry)) {
snd_info_set_text_ops(entry, dbri, 4096, dbri_debug_read); snd_info_set_text_ops(entry, dbri, 4096, dbri_debug_read);
entry->mode = S_IFREG | S_IRUGO; /* Readable only. */ entry->mode = S_IFREG | S_IRUGO; /* Readable only. */
}
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment