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 93821c0f6952e65e
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
     1.1 --- a/src/audio/SDL_audio.c	Fri Mar 13 00:48:30 2015 -0400
     1.2 +++ b/src/audio/SDL_audio.c	Fri Mar 13 12:20:17 2015 -0400
     1.3 @@ -726,7 +726,7 @@
     1.4          SDL_StreamDeinit(&device->streamer);
     1.5  #endif
     1.6  
     1.7 -    return (0);
     1.8 +    return 0;
     1.9  }
    1.10  
    1.11  
    1.12 @@ -759,16 +759,16 @@
    1.13  int
    1.14  SDL_GetNumAudioDrivers(void)
    1.15  {
    1.16 -    return (SDL_arraysize(bootstrap) - 1);
    1.17 +    return SDL_arraysize(bootstrap) - 1;
    1.18  }
    1.19  
    1.20  const char *
    1.21  SDL_GetAudioDriver(int index)
    1.22  {
    1.23      if (index >= 0 && index < SDL_GetNumAudioDrivers()) {
    1.24 -        return (bootstrap[index]->name);
    1.25 +        return bootstrap[index]->name;
    1.26      }
    1.27 -    return (NULL);
    1.28 +    return NULL;
    1.29  }
    1.30  
    1.31  int
    1.32 @@ -816,12 +816,12 @@
    1.33          }
    1.34  
    1.35          SDL_memset(&current_audio, 0, sizeof(current_audio));
    1.36 -        return (-1);            /* No driver was available, so fail. */
    1.37 +        return -1;            /* No driver was available, so fail. */
    1.38      }
    1.39  
    1.40      finalize_audio_entry_points();
    1.41  
    1.42 -    return (0);
    1.43 +    return 0;
    1.44  }
    1.45  
    1.46  /*
    1.47 @@ -1294,14 +1294,14 @@
    1.48      /* Start up the audio driver, if necessary. This is legacy behaviour! */
    1.49      if (!SDL_WasInit(SDL_INIT_AUDIO)) {
    1.50          if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0) {
    1.51 -            return (-1);
    1.52 +            return -1;
    1.53          }
    1.54      }
    1.55  
    1.56      /* SDL_OpenAudio() is legacy and can only act on Device ID #1. */
    1.57      if (open_devices[0] != NULL) {
    1.58          SDL_SetError("Audio device is already opened");
    1.59 -        return (-1);
    1.60 +        return -1;
    1.61      }
    1.62  
    1.63      if (obtained) {
    1.64 @@ -1312,7 +1312,7 @@
    1.65      }
    1.66  
    1.67      SDL_assert((id == 0) || (id == 1));
    1.68 -    return ((id == 0) ? -1 : 0);
    1.69 +    return (id == 0) ? -1 : 0;
    1.70  }
    1.71  
    1.72  SDL_AudioDeviceID
    1.73 @@ -1336,7 +1336,7 @@
    1.74              status = SDL_AUDIO_PLAYING;
    1.75          }
    1.76      }
    1.77 -    return (status);
    1.78 +    return status;
    1.79  }
    1.80  
    1.81  
    1.82 @@ -1472,16 +1472,16 @@
    1.83          }
    1.84      }
    1.85      format_idx_sub = 0;
    1.86 -    return (SDL_NextAudioFormat());
    1.87 +    return SDL_NextAudioFormat();
    1.88  }
    1.89  
    1.90  SDL_AudioFormat
    1.91  SDL_NextAudioFormat(void)
    1.92  {
    1.93      if ((format_idx == NUM_FORMATS) || (format_idx_sub == NUM_FORMATS)) {
    1.94 -        return (0);
    1.95 +        return 0;
    1.96      }
    1.97 -    return (format_list[format_idx][format_idx_sub++]);
    1.98 +    return format_list[format_idx][format_idx_sub++];
    1.99  }
   1.100  
   1.101  void