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:
Murai Takashi
2020-09-27 14:19:50 +00:00
committed by Adrien Destugues
parent f30ba67705
commit 68a0df3e0e
+1 -1
View File
@@ -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;