Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Youw committed Apr 6, 2024
1 parent 0db3db3 commit 982b70a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ static void hid_internal_hotplug_exit()
return;
}
EnterCriticalSection(&hid_hotplug_context.critical_section);
struct hid_hotplug_callback** current = &hid_hotplug_context.hotplug_cbs;
struct hid_hotplug_callback **current = &hid_hotplug_context.hotplug_cbs;
/* Remove all callbacks from the list */
while (*current) {
struct hid_hotplug_callback* next = (*current)->next;
struct hid_hotplug_callback *next = (*current)->next;
free(*current);
*current = next;
}
Expand Down

0 comments on commit 982b70a

Please sign in to comment.