* [PATCH] usb: phy: remove dead code
@ 2013-11-10 18:37 Michal Nazarewicz
2013-11-11 8:33 ` Sebastian Andrzej Siewior
2013-11-12 15:21 ` Felipe Balbi
0 siblings, 2 replies; 4+ messages in thread
From: Michal Nazarewicz @ 2013-11-10 18:37 UTC (permalink / raw)
To: Felipe Balbi, Roger Quadros, Sebastian Andrzej Siewior
Cc: Greg Kroah-Hartman, linux-usb, linux-kernel
From: Michal Nazarewicz <mina86@mina86.com>
---
drivers/usb/phy/phy-am335x.c | 2 --
drivers/usb/phy/phy-generic.c | 2 --
2 files changed, 4 deletions(-)
diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c
index 6370e50..48d41ab 100644
--- a/drivers/usb/phy/phy-am335x.c
+++ b/drivers/usb/phy/phy-am335x.c
@@ -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)
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c
index fce3a9e..db4fc22 100644
--- a/drivers/usb/phy/phy-generic.c
+++ b/drivers/usb/phy/phy-generic.c
@@ -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)
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: phy: remove dead code
2013-11-10 18:37 [PATCH] usb: phy: remove dead code Michal Nazarewicz
@ 2013-11-11 8:33 ` Sebastian Andrzej Siewior
2013-11-12 15:21 ` Felipe Balbi
1 sibling, 0 replies; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-11-11 8:33 UTC (permalink / raw)
To: Michal Nazarewicz
Cc: Felipe Balbi, Roger Quadros, Greg Kroah-Hartman, linux-usb,
linux-kernel
On 11/10/2013 07:37 PM, Michal Nazarewicz wrote:
> From: Michal Nazarewicz <mina86@mina86.com>
Thanks. This is the result of a merge. Felipe noticed this a few days
back and wanted to take care of this, not sure what the exact status is.
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: phy: remove dead code
2013-11-10 18:37 [PATCH] usb: phy: remove dead code Michal Nazarewicz
2013-11-11 8:33 ` Sebastian Andrzej Siewior
@ 2013-11-12 15:21 ` Felipe Balbi
2013-11-12 16:00 ` Michal Nazarewicz
1 sibling, 1 reply; 4+ messages in thread
From: Felipe Balbi @ 2013-11-12 15:21 UTC (permalink / raw)
To: Michal Nazarewicz
Cc: Felipe Balbi, Roger Quadros, Sebastian Andrzej Siewior,
Greg Kroah-Hartman, linux-usb, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
On Sun, Nov 10, 2013 at 07:37:37PM +0100, Michal Nazarewicz wrote:
> From: Michal Nazarewicz <mina86@mina86.com>
no SoB, cannot apply. I already had this patch in my tree but didn't
send it. I'm fine with using yours but I need SoB and commit log.
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: phy: remove dead code
2013-11-12 15:21 ` Felipe Balbi
@ 2013-11-12 16:00 ` Michal Nazarewicz
0 siblings, 0 replies; 4+ messages in thread
From: Michal Nazarewicz @ 2013-11-12 16:00 UTC (permalink / raw)
To: Felipe Balbi
Cc: Felipe Balbi, Roger Quadros, Sebastian Andrzej Siewior,
Greg Kroah-Hartman, linux-usb, linux-kernel
Commit [4d175f34: usb: phy: nop: Defer clock prepare until PHY init]
removed a goto reaching behind a “return ret” at the end of the function
thus removing the only possible way that statement could be reached, and
so rendering it a dead code. This commit cleans it up by removing said
dead code.
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
---
drivers/usb/phy/phy-am335x.c | 2 --
drivers/usb/phy/phy-generic.c | 2 --
2 files changed, 4 deletions(-)
On Tue, Nov 12 2013, Felipe Balbi wrote:
> no SoB, cannot apply.
Sorry about that.
> I already had this patch in my tree but didn't send it. I'm fine with
> using yours but I need SoB and commit log.
I don't mind either way as long as the code gets deleted. ;)
diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c
index 6370e50..48d41ab 100644
--- a/drivers/usb/phy/phy-am335x.c
+++ b/drivers/usb/phy/phy-am335x.c
@@ -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)
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c
index fce3a9e..db4fc22 100644
--- a/drivers/usb/phy/phy-generic.c
+++ b/drivers/usb/phy/phy-generic.c
@@ -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)
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-12 16:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-10 18:37 [PATCH] usb: phy: remove dead code Michal Nazarewicz
2013-11-11 8:33 ` Sebastian Andrzej Siewior
2013-11-12 15:21 ` Felipe Balbi
2013-11-12 16:00 ` Michal Nazarewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox