From: Aaro Koskinen Date: Sat, 21 Dec 2013 18:37:36 +0000 (+0200) Subject: usb: phy: tahvo: fix smatch warnings X-Git-Tag: v3.14-rc1~148^2~90^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80f46d5dcb0af46f325c897392baef4911f401b7;p=pandora-kernel.git usb: phy: tahvo: fix smatch warnings phy-tahvo introduced the following smatch warnings: drivers/usb/phy/phy-tahvo.c:203 tahvo_usb_set_host() warn: variable dereferenced before check 'otg' (see line 199) drivers/usb/phy/phy-tahvo.c:235 tahvo_usb_set_peripheral() warn: variable dereferenced before check 'otg' (see line 231) Fix by deleting bogus NULL pointer checks. The USB framework will always call us with a valid OTG pointer. Reported-by: Dan Carpenter Signed-off-by: Aaro Koskinen Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed