Skip to content

Commit

Permalink
fix static scan issue
Browse files Browse the repository at this point in the history
Test Done:
boot

Tracked-On: OAM-128159
Signed-off-by: Gang G Chen <[email protected]>
  • Loading branch information
GangSecurity committed Jan 6, 2025
1 parent 62c1c8b commit bba689e
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions drivers/dw3/dw3.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,7 @@ UsbdEpTxData (
)
{
EFI_STATUS Status = EFI_DEVICE_ERROR;
USB_XFER_REQUEST TxReq;

TxReq.actual_xfer_len = 0; /* Avoid Uninitialized scalar variable */
TxReq.stream_id = 0;
TxReq.frame_num = 0;
TxReq.zlp = 0;
USB_XFER_REQUEST TxReq = {0};

/* set endpoint data */
UsbdSetEpInfo (&(TxReq.ep_info), &(IoReq->EndpointInfo));
Expand Down Expand Up @@ -771,11 +766,7 @@ UsbdEpRxData (
)
{
EFI_STATUS Status = EFI_DEVICE_ERROR;
USB_XFER_REQUEST RxReq;
RxReq.actual_xfer_len = 0; /* Avoid Uninitialized scalar variable */
RxReq.stream_id = 0;
RxReq.frame_num = 0;
RxReq.zlp = 0;
USB_XFER_REQUEST RxReq = {0};

UINT32 ReqPacket;

Expand Down

0 comments on commit bba689e

Please sign in to comment.