Remove un-needed check for NULL pointer. They were previously checked just before.

This commit is contained in:
Sylvain
2022-11-16 21:27:16 +01:00
parent 8ea96f365f
commit 1d7966df15
5 changed files with 8 additions and 13 deletions

View File

@@ -648,9 +648,7 @@ SDL_GetPowerInfo_Linux_org_freedesktop_upower(SDL_PowerState *state, int *second
check_upower_device(dbus->system_conn, paths[i], state, seconds, percent);
}
if (dbus) {
dbus->free_string_array(paths);
}
dbus->free_string_array(paths);
#endif /* SDL_USE_LIBDBUS */
return retval;