Skip to content

usb: Simplify return statements

Karajgaonkar, Saurabh (S.) linux-arm-kernel lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 2 repliesIn review
  2. v19 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- corrected indentation issues [Patch 06/09, 08/09, 09/09]
- Patch 04/09 Acked by Patrice Chotard <[email protected]>

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9usb: phy: phy-mxs-usb: Simplify return statementdrivers/usb/phy/phy-mxs-usb.c+1 -50 replies
2/9usb: phy: phy-keystone: Simplify return statementdrivers/usb/phy/phy-keystone.c+1 -50 replies
3/9usb: musb: musb_dsps: Simplify return statementdrivers/usb/musb/musb_dsps.c+1 -50 replies
4/9usb: host: ehci-st: Simplify return statementdrivers/usb/host/ehci-st.c+1 -61 reply
5/9usb: host: oxu210hp-hcd: Simplify return statementdrivers/usb/host/oxu210hp-hcd.c+1 -60 replies
6/9usb: host: u132-hcd: Simplify return statementdrivers/usb/host/u132-hcd.c+9 -260 replies
7/9usb: host: xhci: Simplify return statementdrivers/usb/host/xhci.c+1 -50 replies
8/9usb: serial: mxuport: Simplify return statementdrivers/usb/serial/mxuport.c+3 -71 reply
9/9usb: misc: ftdi-elan: Simplify return statementdrivers/usb/misc/ftdi-elan.c+2 -100 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchMaxime Coquelin
1/9
2/9
3/9
4/9A-b
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/9] usb: Simplify return statements

From: Saurabh Karajgaonkar <[email protected]>

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 <[email protected]>

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(-)
Signature · 1 line
1.9.1