diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2018-03-06 17:37:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-06 17:37:43 +0800 |
commit | 0618f31f22d659cc6f87bd34924461479306d415 (patch) | |
tree | 446301a34f3c77c933ba2b0f111bd2ef4fcd649d | |
parent | c06852ff6f676cc62dc2072c2a8d82ecd05a774e (diff) | |
parent | 023b83ab597391b310d3e0a00d6f10a6289541c3 (diff) | |
download | OpenPlatformPkg-0618f31f22d659cc6f87bd34924461479306d415.tar.gz |
Merge pull request #103 from hzhuang1/fix_uv_2
Drivers/DwUsb3Dxe: fix uninitialized variable
-rw-r--r-- | Drivers/Usb/DwUsb3Dxe/DwUsb3Dxe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Drivers/Usb/DwUsb3Dxe/DwUsb3Dxe.c b/Drivers/Usb/DwUsb3Dxe/DwUsb3Dxe.c index c2fad30..408d744 100644 --- a/Drivers/Usb/DwUsb3Dxe/DwUsb3Dxe.c +++ b/Drivers/Usb/DwUsb3Dxe/DwUsb3Dxe.c @@ -226,7 +226,7 @@ DwUsb3SetFifoSize ( IN UINT32 FifoNum ) { - UINT32 Reg; + UINT32 Reg = 0; if (Dir == FIFO_DIR_TX) { Reg = GTXFIFOSIZ (FifoNum); @@ -1219,7 +1219,7 @@ DwUsb3HandleEndPoint0 ( ) { usb3_pcd_ep_t *ep0 = &pcd->ep0; - usb3_dma_desc_t *desc; + usb3_dma_desc_t *desc = NULL; UINT32 byte_count, len; switch (pcd->ep0state) { |