Fix the device-open check

Fixed the device-open check with --disable-aload.
This commit is contained in:
Takashi Iwai 2005-03-16 13:25:25 +00:00
parent 0434c183e3
commit b0b8957c00

View file

@ -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