Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Readability: remove redundant return, continue, enum declaration
  • Loading branch information
1bsyl committed Oct 30, 2019
1 parent b458d7a commit 60d3965
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/audio/alsa/SDL_alsa_audio.c
Expand Up @@ -340,7 +340,6 @@ swizzle_alsa_channels(_THIS, void *buffer, Uint32 bufferlen)
static void
no_swizzle(_THIS, void *buffer, Uint32 bufferlen)
{
return;
}
#endif /* SND_CHMAP_API_VERSION */

Expand Down
2 changes: 1 addition & 1 deletion src/joystick/SDL_gamecontroller.c
Expand Up @@ -881,7 +881,7 @@ SDL_PrivateAddMappingForGUID(SDL_JoystickGUID jGUID, const char *mappingString,
for ( pPrevMapping = s_pSupportedControllers, pCurrMapping = pPrevMapping->next;
pCurrMapping;
pPrevMapping = pCurrMapping, pCurrMapping = pCurrMapping->next ) {
continue;
/* continue; */
}
pPrevMapping->next = pControllerMapping;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/render/opengl/SDL_render_gl.c
Expand Up @@ -180,7 +180,7 @@ GL_ClearErrors(SDL_Renderer *renderer)
}
} else if (data->glGetError != NULL) {
while (data->glGetError() != GL_NO_ERROR) {
continue;
/* continue; */
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -208,7 +208,7 @@ GL_ClearErrors(SDL_Renderer *renderer)
return;
}
while (data->glGetError() != GL_NO_ERROR) {
continue;
/* continue; */
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/video/SDL_blit_N.c
Expand Up @@ -2317,7 +2317,6 @@ get_permutation(SDL_PixelFormat *srcfmt, SDL_PixelFormat *dstfmt,
if (_alpha_channel) {
*_alpha_channel = alpha_channel;
}
return;
}


Expand Down Expand Up @@ -3109,7 +3108,6 @@ Blit_3or4_to_3or4__same_rgb(SDL_BlitInfo * info)
dst += dstskip;
}
}
return;
}

/* Blit_3or4_to_3or4__inversed_rgb: 3 or 4 bpp, inversed RGB triplet */
Expand Down Expand Up @@ -3214,7 +3212,6 @@ Blit_3or4_to_3or4__inversed_rgb(SDL_BlitInfo * info)
dst += dstskip;
}
}
return;
}

/* Normal N to N optimized blitters */
Expand Down
1 change: 0 additions & 1 deletion src/video/wayland/SDL_waylandtouch.c
Expand Up @@ -192,7 +192,6 @@ WL_EXPORT const struct wl_interface qt_windowmanager_interface = {
/* wayland-qt-windowmanager.c ENDS */

/* wayland-qt-surface-extension.c BEGINS */
extern const struct wl_interface qt_extended_surface_interface;
#ifndef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
extern const struct wl_interface wl_surface_interface;
#endif
Expand Down

0 comments on commit 60d3965

Please sign in to comment.