Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1199891 > unrolled thread
| Started by | "Karajgaonkar, Saurabh (S.)" <skarajga@visteon.com> |
|---|---|
| First post | 2015-08-04 16:10 +0200 |
| Last post | 2015-08-04 16:10 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH v2 0/9] usb: Simplify return statements "Karajgaonkar, Saurabh (S.)" <skarajga@visteon.com> - 2015-08-04 16:10 +0200
[PATCH v2 1/9] usb: phy: phy-mxs-usb: Simplify return statement "Karajgaonkar, Saurabh (S.)" <skarajga@visteon.com> - 2015-08-04 16:10 +0200
| From | "Karajgaonkar, Saurabh (S.)" <skarajga@visteon.com> |
|---|---|
| Date | 2015-08-04 16:10 +0200 |
| Subject | [PATCH v2 0/9] usb: Simplify return statements |
| Message-ID | <pTL4J-4lr-5@gated-at.bofh.it> |
From: Saurabh Karajgaonkar <skarajga@visteon.com> This patch series is created using simple_return.cocci coccinelle script. It replaces the redundant instances where variable is first assigned return value from a function call and then used in return statement, by direct function call in the return statement. Changes for v2: - corrected indentation issues [Patch 06/09, 08/09, 09/09] - Patch 04/09 Acked by Patrice Chotard <patrice.chotard@st.com> Saurabh Karajgaonkar (9): usb: phy: phy-mxs-usb: Simplify return statement usb: phy: phy-keystone: Simplify return statement usb: musb: musb_dsps: Simplify return statement usb: host: ehci-st: Simplify return statement usb: host: oxu210hp-hcd: Simplify return statement usb: host: u132-hcd: Simplify return statement usb: host: xhci: Simplify return statement usb: serial: mxuport: Simplify return statement usb: misc: ftdi-elan: Simplify return statement drivers/usb/host/ehci-st.c | 7 +------ drivers/usb/host/oxu210hp-hcd.c | 7 +------ drivers/usb/host/u132-hcd.c | 35 +++++++++-------------------------- drivers/usb/host/xhci.c | 6 +----- drivers/usb/misc/ftdi-elan.c | 12 ++---------- drivers/usb/musb/musb_dsps.c | 6 +----- drivers/usb/phy/phy-keystone.c | 6 +----- drivers/usb/phy/phy-mxs-usb.c | 6 +----- drivers/usb/serial/mxuport.c | 10 +++------- 9 files changed, 20 insertions(+), 75 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | "Karajgaonkar, Saurabh (S.)" <skarajga@visteon.com> |
|---|---|
| Date | 2015-08-04 16:10 +0200 |
| Subject | [PATCH v2 1/9] usb: phy: phy-mxs-usb: Simplify return statement |
| Message-ID | <pTL4L-4lr-61@gated-at.bofh.it> |
| In reply to | #1199891 |
From: Saurabh Karajgaonkar <skarajga@visteon.com> Replace redundant variable use in return statement. Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com> --- drivers/usb/phy/phy-mxs-usb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index 3fcc048..4d863eb 100644 --- a/drivers/usb/phy/phy-mxs-usb.c +++ b/drivers/usb/phy/phy-mxs-usb.c @@ -506,11 +506,7 @@ static int mxs_phy_probe(struct platform_device *pdev) device_set_wakeup_capable(&pdev->dev, true); - ret = usb_add_phy_dev(&mxs_phy->phy); - if (ret) - return ret; - - return 0; + return usb_add_phy_dev(&mxs_phy->phy); } static int mxs_phy_remove(struct platform_device *pdev) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web