Skip to content

Commit

Permalink
[ALSA] dbri - Don't return errors without CONFIG_PROC_FS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 3, 2006
1 parent 04f141a commit 8cb7b63
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sound/sparc/dbri.c
Original file line number Diff line number Diff line change
Expand Up @@ -2519,15 +2519,15 @@ static void dbri_debug_read(struct snd_info_entry * entry,
void snd_dbri_proc(struct snd_dbri * dbri)
{
struct snd_info_entry *entry;
int err;

err = snd_card_proc_new(dbri->card, "regs", &entry);
snd_info_set_text_ops(entry, dbri, 1024, dbri_regs_read);
if (! snd_card_proc_new(dbri->card, "regs", &entry))
snd_info_set_text_ops(entry, dbri, 1024, dbri_regs_read);

#ifdef DBRI_DEBUG
err = snd_card_proc_new(dbri->card, "debug", &entry);
snd_info_set_text_ops(entry, dbri, 4096, dbri_debug_read);
entry->mode = S_IFREG | S_IRUGO; /* Readable only. */
if (! snd_card_proc_new(dbri->card, "debug", &entry)) {
snd_info_set_text_ops(entry, dbri, 4096, dbri_debug_read);
entry->mode = S_IFREG | S_IRUGO; /* Readable only. */
}
#endif
}

Expand Down

0 comments on commit 8cb7b63

Please sign in to comment.