summaryrefslogtreecommitdiff
path: root/src/seq
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-03-16 13:25:25 +0000
committerTakashi Iwai <tiwai@suse.de>2005-03-16 13:25:25 +0000
commitb0b8957c0014c54597bffe5eed144545202c7c98 (patch)
tree55758ad65386769fc98402cc5b799bba1b48f00f /src/seq
parent0434c183e3aace49d2daf96c2e152382fd7b545a (diff)
Fix the device-open check
Fixed the device-open check with --disable-aload.
Diffstat (limited to 'src/seq')
-rw-r--r--src/seq/seq_hw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/seq/seq_hw.c b/src/seq/seq_hw.c
index eadec550..c58a46ae 100644
--- a/src/seq/seq_hw.c
+++ b/src/seq/seq_hw.c
@@ -447,12 +447,12 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
if (fd >= 0)
close(fd);
fd = snd_open_device(filename, fmode);
- if (fd < 0) {
- SYSERR("open %s failed", filename);
- return -errno;
- }
}
#endif
+ if (fd < 0) {
+ SYSERR("open %s failed", filename);
+ return -errno;
+ }
#if 0
/*
* this is bogus, an application have to care about open filedescriptors