From: Jiri Slaby <jirislaby@kernel.org>
To: Charles Han <hanchunchao@inspur.com>, gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Subject: Re: [PATCH] serial: icom: fix inconsistent indenting warning
Date: Wed, 5 Mar 2025 09:45:19 +0100 [thread overview]
Message-ID: <91d7a427-a297-4169-ac8d-af0ef4863d99@kernel.org> (raw)
In-Reply-To: <20250305083729.6090-1-hanchunchao@inspur.com>
On 05. 03. 25, 9:37, Charles Han wrote:
> Fix below inconsistent indenting smatch warning.
> smatch warnings:
> drivers/tty/serial/icom.c:1768 icom_probe() warn: inconsistent indenting
>
> Signed-off-by: Charles Han <hanchunchao@inspur.com>
> ---
> drivers/tty/serial/icom.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c
> index 29e42831df39..6779d8ea1487 100644
> --- a/drivers/tty/serial/icom.c
> +++ b/drivers/tty/serial/icom.c
> @@ -1764,11 +1764,11 @@ 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);
In fact, if you removed that useless (void *) too, the code would fit on
a single 100c line.
> + if (retval)
> + goto probe_exit2;
You removed also { and }. That has nothing to do with the $SUBJECT or
commit log.
thanks,
--
js
suse labs
next prev parent reply other threads:[~2025-03-05 8:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-05 8:37 Charles Han
2025-03-05 8:45 ` Jiri Slaby [this message]
2025-03-05 9:51 ` [PATCH v2] serial: icom: fix code format problems Charles Han
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=91d7a427-a297-4169-ac8d-af0ef4863d99@kernel.org \
--to=jirislaby@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hanchunchao@inspur.com \
--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®