Skip to content

Commit

Permalink
Fix unused value - ret of UsbdSetAddress
Browse files Browse the repository at this point in the history
The return value of UsbdSetAddress is ignored.
Add DEBUG log for it.

Tracked-On: OAM-124684
Signed-off-by: Guo, Jade <[email protected]>
  • Loading branch information
jiaxuan-guo committed Sep 20, 2024
1 parent 45e34a5 commit 518ade3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/dw3/dw3.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,9 @@ UsbdSetupHdlr (
DEBUG ((DEBUG_INFO, "USB_REQ_SET_ADDRESS\n"));
if (CtrlRequest->RequestType == USB_RT_TX_DIR_H_TO_D) {
Status = UsbdSetAddress ((UINT8)CtrlRequest->Value);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "UsbdSetAddress: EFI_DEVICE_ERROR\n"));
}
} else {
DEBUG ((DEBUG_INFO, "UsbdSetupHdlr: Invalid direction for USB_REQ_SET_ADDRESS request\n"));
}
Expand Down

0 comments on commit 518ade3

Please sign in to comment.