Skip to contentSkip to conversation

media: atomisp: put trailing statement on it's own line

PATCH In review Evangelos Ribeiro Tzaras 2 participants 3 messages Jul 14, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: atomisp: put trailing statement on it's own line

Fix checkpatch error "ERROR: trailing statements should be on next line" in ia_css_formats.host.c:47.

---

Hey, this is my first patch
(done as part of a workshop at DebConf25),
I appreciate any feedback, thanks!

---
 .../atomisp/pci/isp/kernels/fc/fc_1.0/ia_css_formats.host.c    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/isp/kernels/fc/fc_1.0/ia_css_formats.host.c +2 -1
index bae1ca2cd505..9a4f9cc40bfa 100644
@@ -44,7 +44,8 @@ ia_css_formats_dump(
     const struct sh_css_isp_formats_params *formats,
     unsigned int level)
 {
-	if (!formats) return;
+	if (!formats)
+		return;
 	ia_css_debug_dtrace(level, "\t%-32s = %d\n",
 			    "video_full_range_flag", formats->video_full_range_flag);
 }
Signature · 1 line
2.50.0
#1 lore raw
Quoted 3 lines · Evangelos Ribeiro Tzaras

Fix checkpatch error "ERROR: trailing statements should be on next line" in ia_css_formats.host.c:47.

Is this the only single occurrence of such a problem in the whole driver?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 7 lines · Andy Shevchenko
Quoted 3 lines · Evangelos Ribeiro Tzaras

Fix checkpatch error "ERROR: trailing statements should be on next line" in ia_css_formats.host.c:47.

Is this the only single occurrence of such a problem in the whole driver?

There is another patch floating around targeting the same issue, please coordinate and send only a few patches or ideally just one against the whole driver (perhaps excluding i2c folder as Hans actively working on it).

Signature · 2 lines
With Best Regards,
Andy Shevchenko