Skip to contentSkip to conversation

usb: phy: remove trivial dead code

PATCH New Michael Opdenacker 1 participant 1 message Nov 8, 2013 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: phy: remove trivial dead code

This removes trivial dead code from drivers/usb/phy/phy-am335x.c and drivers/usb/phy/phy-generic.c

Found by Coverity (CID 1127232 and CID 1127231)

---
 drivers/usb/phy/phy-am335x.c  | 2 --
 drivers/usb/phy/phy-generic.c | 2 --
 2 files changed, 4 deletions(-)
drivers/usb/phy/phy-am335x.c +0 -2
index 6370e50649d7..48d41abd1b6b 100644
@@ -66,8 +66,6 @@ static int am335x_phy_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, am_phy);
 
 	return 0;
-
-	return ret;
 }
 
 static int am335x_phy_remove(struct platform_device *pdev)
drivers/usb/phy/phy-generic.c +0 -2
index fce3a9e9bb5d..db4fc22e4aa6 100644
@@ -271,8 +271,6 @@ static int usb_phy_gen_xceiv_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, nop);
 
 	return 0;
-
-	return err;
 }
 
 static int usb_phy_gen_xceiv_remove(struct platform_device *pdev)
Signature · 1 line
1.8.1.2