Cleaning out a silly coding style I used to use.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 13 Mar 2015 12:20:17 -0400
changeset 9382 1c0f6952e65e
parent 9381 812b2dabf8a4
child 9383 62164ad0b7d5
Cleaning out a silly coding style I used to use. Changed all the "return (x);" lines to "return x;"
src/audio/SDL_audio.c
--- a/src/audio/SDL_audio.c	Fri Mar 13 00:48:30 2015 -0400
+++ b/src/audio/SDL_audio.c	Fri Mar 13 12:20:17 2015 -0400
@@ -726,7 +726,7 @@
         SDL_StreamDeinit(&device->streamer);
 #endif
 
-    return (0);
+    return 0;
 }
 
 
@@ -759,16 +759,16 @@
 int
 SDL_GetNumAudioDrivers(void)
 {
-    return (SDL_arraysize(bootstrap) - 1);
+    return SDL_arraysize(bootstrap) - 1;
 }
 
 const char *
 SDL_GetAudioDriver(int index)
 {
     if (index >= 0 && index < SDL_GetNumAudioDrivers()) {
-        return (bootstrap[index]->name);
+        return bootstrap[index]->name;
     }
-    return (NULL);
+    return NULL;
 }
 
 int
@@ -816,12 +816,12 @@
         }
 
         SDL_memset(&current_audio, 0, sizeof(current_audio));
-        return (-1);            /* No driver was available, so fail. */
+        return -1;            /* No driver was available, so fail. */
     }
 
     finalize_audio_entry_points();
 
-    return (0);
+    return 0;
 }
 
 /*
@@ -1294,14 +1294,14 @@
     /* Start up the audio driver, if necessary. This is legacy behaviour! */
     if (!SDL_WasInit(SDL_INIT_AUDIO)) {
         if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0) {
-            return (-1);
+            return -1;
         }
     }
 
     /* SDL_OpenAudio() is legacy and can only act on Device ID #1. */
     if (open_devices[0] != NULL) {
         SDL_SetError("Audio device is already opened");
-        return (-1);
+        return -1;
     }
 
     if (obtained) {
@@ -1312,7 +1312,7 @@
     }
 
     SDL_assert((id == 0) || (id == 1));
-    return ((id == 0) ? -1 : 0);
+    return (id == 0) ? -1 : 0;
 }
 
 SDL_AudioDeviceID
@@ -1336,7 +1336,7 @@
             status = SDL_AUDIO_PLAYING;
         }
     }
-    return (status);
+    return status;
 }
 
 
@@ -1472,16 +1472,16 @@
         }
     }
     format_idx_sub = 0;
-    return (SDL_NextAudioFormat());
+    return SDL_NextAudioFormat();
 }
 
 SDL_AudioFormat
 SDL_NextAudioFormat(void)
 {
     if ((format_idx == NUM_FORMATS) || (format_idx_sub == NUM_FORMATS)) {
-        return (0);
+        return 0;
     }
-    return (format_list[format_idx][format_idx_sub++]);
+    return format_list[format_idx][format_idx_sub++];
 }
 
 void