mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
usbutils remove_in_use yet again
This commit is contained in:
parent
d436beb7e2
commit
bfdbec1d87
@ -880,7 +880,8 @@ static void remove_in_use(uint8_t bus_number, uint8_t device_address)
|
||||
found = true;
|
||||
if (in_use_tmp == in_use_head) {
|
||||
in_use_head = in_use_head->next;
|
||||
in_use_head->prev = NULL;
|
||||
if (in_use_head)
|
||||
in_use_head->prev = NULL;
|
||||
} else {
|
||||
in_use_tmp->prev->next = in_use_tmp->next;
|
||||
if (in_use_tmp->next)
|
||||
|
Loading…
x
Reference in New Issue
Block a user