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

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

No files matched your search

+1 -3
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;