From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Johts <johatanrlima@gmail.com>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-media@vger.kernel.org, andy@kernel.org, hansg@kernel.org,
mchehab@kernel.org, regkh@linuxfoundation.org,
~lkcamp/patches@lists.sr.ht, koike@igalia.com
Subject: Re: [PATCH] staging: media: atomisp: pci: runtime: debug: src: remove curly braces for single line if
Date: Fri, 24 Apr 2026 00:04:38 +0300 [thread overview]
Message-ID: <aeqJZljd2ACrsIcb@kekkonen.localdomain> (raw)
In-Reply-To: <20260423184543.109954-1-johatanrlima@gmail.com>
Hi Johts,
On Thu, Apr 23, 2026 at 03:45:40PM -0300, Johts wrote:
> Fix checkpath error "WARNING: braces {} are not necessary for single statement blocks" in sh_css_params.c:1931
>
> Signed-off-by: Johts <johatanrlima@gmail.com>
We need a more specific name here.
> ---
> drivers/staging/media/atomisp/pci/sh_css_params.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/media/atomisp/pci/sh_css_params.c b/drivers/staging/media/atomisp/pci/sh_css_params.c
> index fcebace11daf..31426001864e 100644
> --- a/drivers/staging/media/atomisp/pci/sh_css_params.c
> +++ b/drivers/staging/media/atomisp/pci/sh_css_params.c
> @@ -1928,10 +1928,8 @@ sh_css_set_per_frame_isp_config_on_pipe(
> params = stream->per_frame_isp_params_configs;
>
> /* update new ISP params object with the new config */
> - if (!sh_css_init_isp_params_from_global(stream, params, false, pipe)) {
> - err1 = -EINVAL;
> - }
> -
> + if (!sh_css_init_isp_params_from_global(stream, params, false, pipe)) err1 = -EINVAL;
Please run checkpatch.pl on this.
> +
> err2 = sh_css_init_isp_params_from_config(stream->pipes[0], params, config, pipe);
>
> if (per_frame_config_created) {
--
Regards,
Sakari Ailus
prev parent reply other threads:[~2026-04-23 21:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-23 18:45 [PATCH] staging: media: atomisp: pci: runtime: debug: src: remove curly braces for single line if Johts
2026-04-23 21:04 ` Sakari Ailus [this message]
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=aeqJZljd2ACrsIcb@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=andy@kernel.org \
--cc=hansg@kernel.org \
--cc=johatanrlima@gmail.com \
--cc=koike@igalia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=regkh@linuxfoundation.org \
--cc=~lkcamp/patches@lists.sr.ht \
/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