From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Martiros Shakhzadyan <vrzh@vrzh.net>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
Sasha Levin <sashal@kernel.org>
Subject: [PATCH 5.10.y 4/6] media: staging: media: atomisp: Replace if else clause with a ternary
Date: Tue, 14 Jul 2026 16:01:56 -0400 [thread overview]
Message-ID: <20260714200158.3152137-4-sashal@kernel.org> (raw)
In-Reply-To: <20260714200158.3152137-1-sashal@kernel.org>
From: Martiros Shakhzadyan <vrzh@vrzh.net>
[ Upstream commit d4bc34d18201120b247506b4a6ed17af694dfcf7 ]
Use the ternary operator for conditional variable assignment in
create_host_video_pipeline().
Signed-off-by: Martiros Shakhzadyan <vrzh@vrzh.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: f4d51e55dd47 ("staging: media: atomisp: reduce load_primary_binaries() stack usage")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/staging/media/atomisp/pci/sh_css.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/sh_css.c b/drivers/staging/media/atomisp/pci/sh_css.c
index ce39693547064a..e04116ac306f3c 100644
--- a/drivers/staging/media/atomisp/pci/sh_css.c
+++ b/drivers/staging/media/atomisp/pci/sh_css.c
@@ -3623,11 +3623,8 @@ static int create_host_video_pipeline(struct ia_css_pipe *pipe)
struct ia_css_frame *tmp_out_frame = NULL;
for (i = 0; i < num_yuv_scaler; i++) {
- if (is_output_stage[i]) {
- tmp_out_frame = out_frame;
- } else {
- tmp_out_frame = NULL;
- }
+ tmp_out_frame = is_output_stage[i] ? out_frame : NULL;
+
err = add_yuv_scaler_stage(pipe, me, tmp_in_frame, tmp_out_frame,
NULL,
&yuv_scaler_binary[i],
--
2.53.0
next prev parent reply other threads:[~2026-07-14 20:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-13 13:32 FAILED: patch "[PATCH] staging: media: atomisp: reduce load_primary_binaries() stack" failed to apply to 5.10-stable tree gregkh
2026-07-14 20:01 ` [PATCH 5.10.y 1/6] media: atomisp: replace boolean comparison of values with bool variables Sasha Levin
2026-07-14 20:01 ` [PATCH 5.10.y 2/6] media: staging: media: atomisp: Fix sh_css.c brace coding style issues Sasha Levin
2026-07-14 20:01 ` [PATCH 5.10.y 3/6] media: staging: media: atomisp: Fix the rest of sh_css.c brace issues Sasha Levin
2026-07-14 20:01 ` Sasha Levin [this message]
2026-07-14 20:01 ` [PATCH 5.10.y 5/6] media: staging: media: atomisp: Fix alignment and line length issues Sasha Levin
2026-07-14 20:01 ` [PATCH 5.10.y 6/6] staging: media: atomisp: reduce load_primary_binaries() stack usage Sasha Levin
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=20260714200158.3152137-4-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=mchehab+huawei@kernel.org \
--cc=stable@vger.kernel.org \
--cc=vrzh@vrzh.net \
/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