From: David Laight <David.Laight@ACULAB.COM>
To: "'joelcchangg@gmail.com'" <joelcchangg@gmail.com>,
"linux-staging@lists.linux.dev" <linux-staging@lists.linux.dev>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"gregkh@linuxfoundation.com" <gregkh@linuxfoundation.com>
Subject: RE: [PATCH] staging: octeon-usb: Fix 'should not end with '(''
Date: Sun, 6 Feb 2022 14:16:26 +0000 [thread overview]
Message-ID: <c0b504dd1f254f19b6ff60948684303b@AcuMS.aculab.com> (raw)
In-Reply-To: <20220206074615.3527-1-joelcchangg@gmail.com>
From: joelcchangg@gmail.com
> Sent: 06 February 2022 07:46
>
> This patch fixes the checkpatch.pl check:
>
> CHECK: Line should not end with '('
>
> at lines 1802, 1807 and at some function headers.
>
> Signed-off-by: Joel Camilo Chang Gonzalez <joelcchangg@gmail.com>
> ---
> drivers/staging/octeon-usb/octeon-hcd.c | 67 +++++++++++--------------
> 1 file changed, 29 insertions(+), 38 deletions(-)
>
> diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c
> index a1cd81d4a114..60e8354104e6 100644
> --- a/drivers/staging/octeon-usb/octeon-hcd.c
> +++ b/drivers/staging/octeon-usb/octeon-hcd.c
> @@ -1792,23 +1792,18 @@ static void cvmx_usb_start_channel(struct octeon_hcd *usb, int channel,
> case CVMX_USB_TRANSFER_INTERRUPT:
> break;
> case CVMX_USB_TRANSFER_ISOCHRONOUS:
> - if (!cvmx_usb_pipe_needs_split(usb, pipe)) {
> + if (!cvmx_usb_pipe_needs_split(usb, pipe) &&
> + pipe->transfer_dir == CVMX_USB_DIRECTION_OUT) {
> /*
> * ISO transactions require different PIDs depending on
> * direction and how many packets are needed
> */
> - if (pipe->transfer_dir == CVMX_USB_DIRECTION_OUT) {
> - if (pipe->multi_count < 2) /* Need DATA0 */
> - USB_SET_FIELD32(
> - CVMX_USBCX_HCTSIZX(channel,
> - usb->index),
> + if (pipe->multi_count < 2) /* Need DATA0 */
> + USB_SET_FIELD32(CVMX_USBCX_HCTSIZX(channel, usb->index),
> cvmx_usbcx_hctsizx, pid, 0);
> - else /* Need MDATA */
> - USB_SET_FIELD32(
> - CVMX_USBCX_HCTSIZX(channel,
> - usb->index),
> + else /* Need MDATA */
> + USB_SET_FIELD32(CVMX_USBCX_HCTSIZX(channel, usb->index),
> cvmx_usbcx_hctsizx, pid, 3);
> - }
> }
> break;
> }
What has that hunk got to do with the patch description?
> @@ -2121,17 +2116,17 @@ static void cvmx_usb_complete(struct octeon_hcd *usb,
> *
> * Returns: Transaction or NULL on failure.
> */
> -static struct cvmx_usb_transaction *cvmx_usb_submit_transaction(
> - struct octeon_hcd *usb,
> - struct cvmx_usb_pipe *pipe,
> - enum cvmx_usb_transfer type,
> - u64 buffer,
> - int buffer_length,
> - u64 control_header,
> - int iso_start_frame,
> - int iso_number_packets,
> - struct cvmx_usb_iso_packet *iso_packets,
> - struct urb *urb)
> +static struct cvmx_usb_transaction *cvmx_usb_submit_transaction(struct octeon_hcd *usb,
> + struct cvmx_usb_pipe *pipe,
> + enum cvmx_usb_transfer type,
> + u64 buffer,
> + int buffer_length,
> + u64 control_header,
> + int iso_start_frame,
> + int iso_number_packets,
> + struct cvmx_usb_iso_packet
> + *iso_packets,
> + struct urb *urb)
Those lines are now far longer than is 'nice'.
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
next prev parent reply other threads:[~2022-02-06 14:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-06 7:46 joelcchangg
2022-02-06 14:16 ` David Laight [this message]
2022-02-06 17:17 ` Joe Perches
2022-02-06 19:50 ` Joe Perches
2022-02-07 1:57 ` Joel Chang
2022-02-07 8:09 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c0b504dd1f254f19b6ff60948684303b@AcuMS.aculab.com \
--to=david.laight@aculab.com \
--cc=gregkh@linuxfoundation.com \
--cc=joelcchangg@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®