mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@kernel.org>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
	linux-serial@vger.kernel.org
Subject: Re: [PATCH] serial: icom: Fix some indentation
Date: Tue, 16 Aug 2022 07:51:44 +0200	[thread overview]
Message-ID: <237679cc-1b1a-ac8d-f277-a75cf582a62a@kernel.org> (raw)
In-Reply-To: <037fc7510ff88945e3f0a5756de4cfd135c59849.1660565015.git.christophe.jaillet@wanadoo.fr>

On 15. 08. 22, 14:05, Christophe JAILLET wrote:
> checkpatch and smatch report some code alignment issues.
> 
> So remove some unneeded leading spaces to fix the warnings.
> 
> While at it remove some {} around a single statement and convert some
> spaces into a tab.

Looks good, but maintainers don't like the "While at it" part :D.

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>

> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
>   drivers/tty/serial/icom.c | 27 +++++++++++++--------------
>   1 file changed, 13 insertions(+), 14 deletions(-)
> 
> diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c
> index 45df29947fe8..3ac81622c4fb 100644
> --- a/drivers/tty/serial/icom.c
> +++ b/drivers/tty/serial/icom.c
> @@ -1727,10 +1727,10 @@ static int icom_probe(struct pci_dev *dev,
>   
>   	retval = pci_request_regions(dev, "icom");
>   	if (retval) {
> -		 dev_err(&dev->dev, "pci_request_regions FAILED\n");
> -		 pci_disable_device(dev);
> -		 return retval;
> -	 }
> +		dev_err(&dev->dev, "pci_request_regions FAILED\n");
> +		pci_disable_device(dev);
> +		return retval;
> +	}
>   
>   	pci_set_master(dev);
>   
> @@ -1754,9 +1754,9 @@ static int icom_probe(struct pci_dev *dev,
>   
>   	retval = icom_alloc_adapter(&icom_adapter);
>   	if (retval) {
> -		 dev_err(&dev->dev, "icom_alloc_adapter FAILED\n");
> -		 retval = -EIO;
> -		 goto probe_exit0;
> +		dev_err(&dev->dev, "icom_alloc_adapter FAILED\n");
> +		retval = -EIO;
> +		goto probe_exit0;
>   	}
>   
>   	icom_adapter->base_addr_pci = pci_resource_start(dev, 0);
> @@ -1778,11 +1778,10 @@ static int icom_probe(struct pci_dev *dev,
>   		goto probe_exit1;
>   	}
>   
> -	 /* save off irq and request irq line */
> -	 retval = request_irq(dev->irq, icom_interrupt, IRQF_SHARED, ICOM_DRIVER_NAME, (void *)icom_adapter);
> -	 if (retval) {
> -		  goto probe_exit2;
> -	 }
> +	/* save off irq and request irq line */
> +	retval = request_irq(dev->irq, icom_interrupt, IRQF_SHARED, ICOM_DRIVER_NAME, (void *)icom_adapter);
> +	if (retval)
> +		goto probe_exit2;
>   
>   	retval = icom_load_ports(icom_adapter);
>   
> @@ -1798,11 +1797,11 @@ static int icom_probe(struct pci_dev *dev,
>   			icom_port->uart_port.fifosize = 16;
>   			icom_port->uart_port.ops = &icom_ops;
>   			icom_port->uart_port.line =
> -		        icom_port->port + icom_adapter->index * 4;
> +			icom_port->port + icom_adapter->index * 4;
>   			if (uart_add_one_port (&icom_uart_driver, &icom_port->uart_port)) {
>   				icom_port->status = ICOM_PORT_OFF;
>   				dev_err(&dev->dev, "Device add failed\n");
> -			 } else
> +			} else
>   				dev_info(&dev->dev, "Device added\n");
>   		}
>   	}

-- 
js
suse labs


  reply	other threads:[~2022-08-16  8:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 12:05 Christophe JAILLET
2022-08-16  5:51 ` Jiri Slaby [this message]
2022-08-30 11:33 ` Greg Kroah-Hartman

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=237679cc-1b1a-ac8d-f277-a75cf582a62a@kernel.org \
    --to=jirislaby@kernel.org \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    /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®