Fixed most small problems reported by cppcheck for src/core PR #7307 (from @kevin2kevin2)

This commit is contained in:
Sylvain
2023-02-15 21:29:01 +01:00
committed by Sylvain Becker
parent bcd97b36d2
commit b44d3699b1
6 changed files with 15 additions and 18 deletions

View File

@@ -152,8 +152,6 @@ int SDL_UDEV_Init(void)
void SDL_UDEV_Quit(void)
{
SDL_UDEV_CallbackList *item;
if (_this == NULL) {
return;
}
@@ -173,7 +171,7 @@ void SDL_UDEV_Quit(void)
/* Remove existing devices */
while (_this->first != NULL) {
item = _this->first;
SDL_UDEV_CallbackList *item = _this->first;
_this->first = _this->first->next;
SDL_free(item);
}