mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 20:30:32 -04:00
media: staging: media: atomisp: Replace if else clause with a ternary
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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
9d63454732
commit
d4bc34d182
@@ -3617,11 +3617,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],
|
||||
|
||||
Reference in New Issue
Block a user