diff options
author | Joe Perches <joe@perches.com> | 2015-03-23 15:44:49 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-24 06:41:37 -0400 |
commit | 9a303dc7ba93769e96471158892b264042ddc3fc (patch) | |
tree | 69f29edc2be9efacd2a5e852052691029ce903df /sound/oss | |
parent | 77008b70fe0a9ffe354580d9dfda329cdde7f20b (diff) |
sound: Deparenthesize negative error returns
Make the returns a bit more kernel standard style.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r-- | sound/oss/dev_table.c | 6 | ||||
-rw-r--r-- | sound/oss/v_midi.c | 4 |
2 files changed, 5 insertions, 5 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); |
diff --git a/sound/oss/v_midi.c b/sound/oss/v_midi.c index f0b4151d9b17..fc0ba276cc8f 100644 --- a/sound/oss/v_midi.c +++ b/sound/oss/v_midi.c | |||
@@ -49,13 +49,13 @@ static int v_midi_open (int dev, int mode, | |||
49 | unsigned long flags; | 49 | unsigned long flags; |
50 | 50 | ||
51 | if (devc == NULL) | 51 | if (devc == NULL) |
52 | return -(ENXIO); | 52 | return -ENXIO; |
53 | 53 | ||
54 | spin_lock_irqsave(&devc->lock,flags); | 54 | spin_lock_irqsave(&devc->lock,flags); |
55 | if (devc->opened) | 55 | if (devc->opened) |
56 | { | 56 | { |
57 | spin_unlock_irqrestore(&devc->lock,flags); | 57 | spin_unlock_irqrestore(&devc->lock,flags); |
58 | return -(EBUSY); | 58 | return -EBUSY; |
59 | } | 59 | } |
60 | devc->opened = 1; | 60 | devc->opened = 1; |
61 | spin_unlock_irqrestore(&devc->lock,flags); | 61 | spin_unlock_irqrestore(&devc->lock,flags); |