aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/phy/phy-tahvo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/phy/phy-tahvo.c b/drivers/usb/phy/phy-tahvo.c
index 8bb833e22d64..cc61ee44b911 100644
--- a/drivers/usb/phy/phy-tahvo.c
+++ b/drivers/usb/phy/phy-tahvo.c
@@ -200,9 +200,6 @@ static int tahvo_usb_set_host(struct usb_otg *otg, struct usb_bus *host)
200 200
201 dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, host); 201 dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, host);
202 202
203 if (otg == NULL)
204 return -ENODEV;
205
206 mutex_lock(&tu->serialize); 203 mutex_lock(&tu->serialize);
207 204
208 if (host == NULL) { 205 if (host == NULL) {
@@ -232,9 +229,6 @@ static int tahvo_usb_set_peripheral(struct usb_otg *otg,
232 229
233 dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, gadget); 230 dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, gadget);
234 231
235 if (!otg)
236 return -ENODEV;
237
238 mutex_lock(&tu->serialize); 232 mutex_lock(&tu->serialize);
239 233
240 if (!gadget) { 234 if (!gadget) {