Re: [PATCH 1/2] phy: rockchip-inno-usb2: fix uninitialized tmout variable

2016-11-17 Thread wlf
Hi Arnd, 在 2016年11月16日 22:22, Arnd Bergmann 写道: The newly added OTG support has an obvious uninitialized variable access that gcc warns about: drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work': drivers/phy/phy-rockchip-inno-usb2.c:717:7: error: 'tmout' may be used un

[PATCH 1/2] phy: rockchip-inno-usb2: fix uninitialized tmout variable

2016-11-16 Thread Arnd Bergmann
The newly added OTG support has an obvious uninitialized variable access that gcc warns about: drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work': drivers/phy/phy-rockchip-inno-usb2.c:717:7: error: 'tmout' may be used uninitialized in this function [-Werror=maybe-uniniti