From 80f46d5dcb0af46f325c897392baef4911f401b7 Mon Sep 17 00:00:00 2001 From: Aaro Koskinen Date: Sat, 21 Dec 2013 20:37:36 +0200 Subject: [PATCH] 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-format-patch failed