]> git.alsa-project.org Git - alsa-lib.git/commitdiff
don't check the error from running-mode ioctl (for backward
authorTakashi Iwai <tiwai@suse.de>
Wed, 26 Jun 2002 08:53:07 +0000 (08:53 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 26 Jun 2002 08:53:07 +0000 (08:53 +0000)
compatibility).

src/seq/seq_hw.c

index 22296b982a1bde7de20e13b7abf58e84fef12655..af66703226efb865d0d761f6aeef367f12b32095 100644 (file)
@@ -517,12 +517,7 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
                run_mode.big_endian = 0;
 #endif
                run_mode.cpu_mode = sizeof(long);
-               if (ioctl(fd, SNDRV_SEQ_IOCTL_RUNNING_MODE, &run_mode) < 0) {
-                       int err = errno;
-                       SYSERR("Invalid OS running mode");
-                       snd_seq_close(seq);
-                       return -err;
-               }
+               ioctl(fd, SNDRV_SEQ_IOCTL_RUNNING_MODE, &run_mode);
        }
 #endif