diff options
| author | sakumisu <[email protected]> | 2025-06-16 22:49:55 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-06-19 20:02:19 +0800 |
| commit | 8d8f3e757efda3d7eb228012b3aacdb29ecca9ff (patch) | |
| tree | d89a7cbe46fa0def8cd5d07f1012c2f09909e00e /class | |
| parent | 5e890a078fef0f60d12225e42c4afd3a3b456e4b (diff) | |
fix warning
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'class')
| -rw-r--r-- | class/vendor/net/usbh_rtl8152.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/class/vendor/net/usbh_rtl8152.c b/class/vendor/net/usbh_rtl8152.c index 9c4b6570..145a9e78 100644 --- a/class/vendor/net/usbh_rtl8152.c +++ b/class/vendor/net/usbh_rtl8152.c @@ -1138,7 +1138,7 @@ static void ocp_write_dword(struct usbh_rtl8152 *tp, uint16_t type, uint16_t ind static uint16_t ocp_read_word(struct usbh_rtl8152 *tp, uint16_t type, uint16_t index) { uint32_t data; - uint32_t tmp; + uint32_t tmp = 0; uint16_t byen = BYTE_EN_WORD; uint8_t shift = index & 2; @@ -1178,7 +1178,7 @@ static void ocp_write_word(struct usbh_rtl8152 *tp, uint16_t type, uint16_t inde static uint8_t ocp_read_byte(struct usbh_rtl8152 *tp, uint16_t type, uint16_t index) { uint32_t data; - uint32_t tmp; + uint32_t tmp = 0; uint8_t shift = index & 3; index &= ~3; @@ -1254,7 +1254,7 @@ static inline int r8152_mdio_read(struct usbh_rtl8152 *tp, uint32_t reg_addr) static uint8_t usbh_rtl8152_get_version(struct usbh_rtl8152 *rtl8152_class) { uint8_t version; - uint32_t temp; + uint32_t temp = 0; uint32_t ocp_data; usbh_rtl8152_read_regs(rtl8152_class, PLA_TCR0, MCU_TYPE_PLA, 4, &temp); |
