]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix the device-open check
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 Mar 2005 13:25:25 +0000 (13:25 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Mar 2005 13:25:25 +0000 (13:25 +0000)
Fixed the device-open check with --disable-aload.

src/seq/seq_hw.c

index eadec550f9ee449262280920340f4ecf195d04a3..c58a46aef9b002d395d3c0729a6122538ea41759 100644 (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