[Linux-parport] [PATCH 1/5] parport: add newline to trailing statements

Sudip Mukherjee sudipm.mukherjee at gmail.com
Mon Aug 7 13:42:37 PDT 2017


Hi,

On Mon, Jul 17, 2017 at 05:36:58PM +0100, Carlos Palminha wrote:
> based on checkpatch, add newline to trailing statements
> 
> Signed-off-by: Carlos Palminha <palminha at synopsys.com>
> ---
>  drivers/parport/daisy.c        |  7 +++++--
>  drivers/parport/ieee1284.c     | 17 +++++++++--------
>  drivers/parport/ieee1284_ops.c |  8 ++++++--
>  drivers/parport/parport_cs.c   |  4 +++-
>  drivers/parport/parport_gsc.c  |  6 ++++--
>  drivers/parport/probe.c        |  4 +++-
>  6 files changed, 30 insertions(+), 16 deletions(-)

<snip>

>  		goto try_again;
>  	success:
>  		parport_frob_control (port, PARPORT_CONTROL_STROBE, 0);
> diff --git a/drivers/parport/parport_cs.c b/drivers/parport/parport_cs.c
> index e9b52e4a4648..993565fef73b 100644
> --- a/drivers/parport/parport_cs.c
> +++ b/drivers/parport/parport_cs.c
> @@ -88,7 +88,9 @@ static int parport_probe(struct pcmcia_device *link)
>  
>      /* Create new parport device */
>      info = kzalloc(sizeof(*info), GFP_KERNEL);
> -    if (!info) return -ENOMEM;
> +    if (!info)
> +        return -ENOMEM;

Please use tab to indent the code. I know some part of this file uses
4 spaces to indent, so if you use one tab before 'return -ENOMEM', it
will look perfect.


--
Regards
Sudip



More information about the Linux-parport mailing list