* [PATCH] octeon-usb: fix 'too many leading tabs'
@ 2015-03-18 16:48 Amitoj Kaur Chawla
2015-03-18 18:26 ` Aaro Koskinen
0 siblings, 1 reply; 2+ messages in thread
From: Amitoj Kaur Chawla @ 2015-03-18 16:48 UTC (permalink / raw)
To: linux-kernel, devel, gregkh
This file contained a lot of warnings of line of over 80 characters
and that the code needs to be refactored due to nested if else
conditions.
The file was accordingly edited to remove some of the warnings.
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
---
drivers/staging/octeon-usb/octeon-hcd.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c
index c8df0c3..e944292 100644
--- a/drivers/staging/octeon-usb/octeon-hcd.c
+++ b/drivers/staging/octeon-usb/octeon-hcd.c
@@ -2920,11 +2920,11 @@ static int __cvmx_usb_poll_channel(struct cvmx_usb_state *usb, int channel)
*/
if (!usbc_hcchar.s.epdir) {
if (buffer_space_left < pipe->max_packet)
- transaction->actual_bytes +=
- buffer_space_left;
+ transaction->actual_bytes +=
+ buffer_space_left;
else
- transaction->actual_bytes +=
- pipe->max_packet;
+ transaction->actual_bytes +=
+ pipe->max_packet;
}
} else if ((buffer_space_left == 0) ||
(bytes_in_last_packet <
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] octeon-usb: fix 'too many leading tabs'
2015-03-18 16:48 [PATCH] octeon-usb: fix 'too many leading tabs' Amitoj Kaur Chawla
@ 2015-03-18 18:26 ` Aaro Koskinen
0 siblings, 0 replies; 2+ messages in thread
From: Aaro Koskinen @ 2015-03-18 18:26 UTC (permalink / raw)
To: Amitoj Kaur Chawla; +Cc: linux-kernel, devel, gregkh
Hi,
On Wed, Mar 18, 2015 at 10:18:29PM +0530, Amitoj Kaur Chawla wrote:
> This file contained a lot of warnings of line of over 80 characters
> and that the code needs to be refactored due to nested if else
> conditions.
>
> The file was accordingly edited to remove some of the warnings.
>
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
> ---
> drivers/staging/octeon-usb/octeon-hcd.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c
> index c8df0c3..e944292 100644
> --- a/drivers/staging/octeon-usb/octeon-hcd.c
> +++ b/drivers/staging/octeon-usb/octeon-hcd.c
> @@ -2920,11 +2920,11 @@ static int __cvmx_usb_poll_channel(struct cvmx_usb_state *usb, int channel)
> */
> if (!usbc_hcchar.s.epdir) {
> if (buffer_space_left < pipe->max_packet)
> - transaction->actual_bytes +=
> - buffer_space_left;
> + transaction->actual_bytes +=
> + buffer_space_left;
> else
> - transaction->actual_bytes +=
> - pipe->max_packet;
> + transaction->actual_bytes +=
> + pipe->max_packet;
You could reduce deep indentation here by moving the whole ACK bit
handling into a separate function.
A.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-18 18:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-18 16:48 [PATCH] octeon-usb: fix 'too many leading tabs' Amitoj Kaur Chawla
2015-03-18 18:26 ` Aaro Koskinen
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®