mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-13 06:01:03 +00:00
usbutils remove_in_use missing prev
This commit is contained in:
parent
2ae4840c72
commit
d436beb7e2
@ -878,9 +878,10 @@ static void remove_in_use(uint8_t bus_number, uint8_t device_address)
|
||||
if (in_use_tmp->in_use.bus_number == (int)bus_number &&
|
||||
in_use_tmp->in_use.device_address == (int)device_address) {
|
||||
found = true;
|
||||
if (in_use_tmp == in_use_head)
|
||||
if (in_use_tmp == in_use_head) {
|
||||
in_use_head = in_use_head->next;
|
||||
else {
|
||||
in_use_head->prev = NULL;
|
||||
} else {
|
||||
in_use_tmp->prev->next = in_use_tmp->next;
|
||||
if (in_use_tmp->next)
|
||||
in_use_tmp->next->prev = in_use_tmp->prev;
|
||||
|
Loading…
x
Reference in New Issue
Block a user