usb/uhci: Remove unneeded NULL check
Thanks to mmlr for pointing out element could not be NULL. Change-Id: I89d85fdd2cc30efd54c81f6c50a5497208bab5d2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3259 Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
f30ba67705
commit
68a0df3e0e
@@ -215,7 +215,7 @@ Queue::AppendTransfer(uhci_qh *transfer, bool lock)
|
||||
} else {
|
||||
// append the transfer queue to the list
|
||||
uhci_qh *element = fQueueTop;
|
||||
while (element && element->link_log)
|
||||
while (element->link_log != NULL)
|
||||
element = (uhci_qh *)element->link_log;
|
||||
|
||||
element->link_log = transfer;
|
||||
|
||||
Reference in New Issue
Block a user