mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-30 02:21:39 +00:00
Remove un-needed check for NULL pointer. They were previously checked just before.
This commit is contained in:
@@ -1302,9 +1302,8 @@ SDL_GetWindowDisplayMode(SDL_Window * window, SDL_DisplayMode * mode)
|
||||
return SDL_SetError("Couldn't find display mode match");
|
||||
}
|
||||
|
||||
if (mode) {
|
||||
*mode = fullscreen_mode;
|
||||
}
|
||||
*mode = fullscreen_mode;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -308,8 +308,8 @@ KMSDRM_CreateDevice(void)
|
||||
return device;
|
||||
|
||||
cleanup:
|
||||
if (device)
|
||||
SDL_free(device);
|
||||
SDL_free(device);
|
||||
|
||||
if (viddata)
|
||||
SDL_free(viddata);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user