diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2013-12-21 22:37:37 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-12-23 20:14:40 +0400 |
commit | 8b42a746e8703c271df3e7f1f5bf5f8f59773d23 (patch) | |
tree | 96489433d85ed9ad655bdc2419f0cc8516bda47b /drivers/usb/Kconfig | |
parent | 80f46d5dcb0af46f325c897392baef4911f401b7 (diff) | |
download | linux-8b42a746e8703c271df3e7f1f5bf5f8f59773d23.tar.xz |
usb: phy: isp1301-omap: fix smatch warnings
phy-isp1301-omap produces the following smatch warnings:
drivers/usb/phy/phy-isp1301-omap.c:1280 isp1301_set_host() warn: variable dereferenced before check 'otg' (see line 1278)
drivers/usb/phy/phy-isp1301-omap.c:1336 isp1301_set_peripheral() warn: variable dereferenced before check 'otg' (see line 1334)
drivers/usb/phy/phy-isp1301-omap.c:1417 isp1301_start_srp() warn: variable dereferenced before check 'otg' (see line 1414)
drivers/usb/phy/phy-isp1301-omap.c:1445 isp1301_start_hnp() warn: variable dereferenced before check 'otg' (see line 1442)
Fix by deleting bogus NULL pointer checks. The USB framework will always
call us with a valid OTG pointer.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/Kconfig')
0 files changed, 0 insertions, 0 deletions