[PATCH] drivers/staging/emxx_udc: avoid > 80 character lines

Greg KH gregkh at linuxfoundation.org
Wed Apr 26 20:19:59 UTC 2017


On Wed, Apr 26, 2017 at 01:57:14PM -0300, Tiago Koji Castro Shibata wrote:
> Fix checkpatch.pl "WARNING: line over 80 characters"
> 
> Signed-off-by: Tiago Koji Castro Shibata <tiago.shibata at gmail.com>
> ---
>  drivers/staging/emxx_udc/emxx_udc.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c
> index 77b242e09932..5abb5922ad7d 100644
> --- a/drivers/staging/emxx_udc/emxx_udc.c
> +++ b/drivers/staging/emxx_udc/emxx_udc.c
> @@ -912,7 +912,8 @@ static int _nbu2ss_epn_out_pio(
>  	if (data > 0) {
>  		/*---------------------------------------------------------*/
>  		/* Copy of fraction byte */
> -		Temp32.dw = _nbu2ss_readl(&preg->EP_REGS[ep->epnum - 1].EP_READ);
> +		Temp32.dw =
> +		_nbu2ss_readl(&preg->EP_REGS[ep->epnum - 1].EP_READ);

That's horrid code now, and does not follow the coding style rules.
Sorry, you can't "fix" one thing and make the code worse :)

Remember, checkpatch.pl is a "guide", sometimes it doesn't make sense to
change anything, like here.

thanks,

greg k-h


More information about the devel mailing list