diff options
Diffstat (limited to 'sound/oss/dev_table.c')
-rw-r--r-- | sound/oss/dev_table.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/oss/dev_table.c b/sound/oss/dev_table.c index d8cf3e58dc76..6dad51596b70 100644 --- a/sound/oss/dev_table.c +++ b/sound/oss/dev_table.c | |||
@@ -58,13 +58,13 @@ int sound_install_audiodrv(int vers, char *name, struct audio_driver *driver, | |||
58 | 58 | ||
59 | if (vers != AUDIO_DRIVER_VERSION || driver_size > sizeof(struct audio_driver)) { | 59 | if (vers != AUDIO_DRIVER_VERSION || driver_size > sizeof(struct audio_driver)) { |
60 | printk(KERN_ERR "Sound: Incompatible audio driver for %s\n", name); | 60 | printk(KERN_ERR "Sound: Incompatible audio driver for %s\n", name); |
61 | return -(EINVAL); | 61 | return -EINVAL; |
62 | } | 62 | } |
63 | num = sound_alloc_audiodev(); | 63 | num = sound_alloc_audiodev(); |
64 | 64 | ||
65 | if (num == -1) { | 65 | if (num == -1) { |
66 | printk(KERN_ERR "sound: Too many audio drivers\n"); | 66 | printk(KERN_ERR "sound: Too many audio drivers\n"); |
67 | return -(EBUSY); | 67 | return -EBUSY; |
68 | } | 68 | } |
69 | d = (struct audio_driver *) (sound_mem_blocks[sound_nblocks] = vmalloc(sizeof(struct audio_driver))); | 69 | d = (struct audio_driver *) (sound_mem_blocks[sound_nblocks] = vmalloc(sizeof(struct audio_driver))); |
70 | sound_nblocks++; | 70 | sound_nblocks++; |
@@ -79,7 +79,7 @@ int sound_install_audiodrv(int vers, char *name, struct audio_driver *driver, | |||
79 | if (d == NULL || op == NULL) { | 79 | if (d == NULL || op == NULL) { |
80 | printk(KERN_ERR "Sound: Can't allocate driver for (%s)\n", name); | 80 | printk(KERN_ERR "Sound: Can't allocate driver for (%s)\n", name); |
81 | sound_unload_audiodev(num); | 81 | sound_unload_audiodev(num); |
82 | return -(ENOMEM); | 82 | return -ENOMEM; |
83 | } | 83 | } |
84 | init_waitqueue_head(&op->in_sleeper); | 84 | init_waitqueue_head(&op->in_sleeper); |
85 | init_waitqueue_head(&op->out_sleeper); | 85 | init_waitqueue_head(&op->out_sleeper); |