Skip to contentSkip to conversation

media: staging: atomisp: Remove unnecessary return statement in void function

PATCH Superseded Tomasz Unger 2 participants 2 messages Mar 5 – Mar 9 1 message not in the archive

Subsystems (4)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20260305-atomisp-remove-void-return-v2b-v1-1-902e534ecb48.ref@yahoo.pl

#1 lore raw

PATCH 1/1 media: staging: atomisp: Remove unnecessary return statement in void function

Remove redundant 'return;' at the end of void function ia_css_dvs_statistics_get(). Void functions do not need an explicit return statement at the end. No other occurrences in this file.

Found with checkpatch.pl --strict.

---
Changes since v1:
- Fixed subject prefix to 'media: staging: atomisp:' (reported by media CI robot)
- Rebased on media-committers/next
- Verified with checkpatch.pl --strict: 0 errors, 0 warnings
- Compiled successfully: make M=drivers/staging/media/atomisp/
- Module loaded successfully in QEMU with Linux 7.0-rc2

---
 drivers/staging/media/atomisp/pci/sh_css_param_dvs.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/media/atomisp/pci/sh_css_param_dvs.c +0 -1
index 9ccdb66de2df..3d2cb2d25fdb 100644
@@ -269,5 +269,4 @@ ia_css_dvs_statistics_get(enum dvs_statistics_type type,
 		ia_css_get_dvs2_statistics(host_stats->p_dvs2_statistics_host,
 					   isp_stats->p_dvs_statistics_isp);
 	}
-	return;
 }

---
base-commit: a7da7fb57f2a787412da1a62292a17fa00fbfbdf
change-id: 20260305-atomisp-remove-void-return-v2b-4ce912de212c

Best regards,

Signature · 1 line
Tomasz Unger <[email protected]>
#2 lore raw
Quoted 9 lines · Tomasz Unger

Remove redundant 'return;' at the end of void function ia_css_dvs_statistics_get(). Void functions do not need an explicit return statement at the end. No other occurrences in this file.

Found with checkpatch.pl --strict.

---
Changes since v1:

You forgot to update the version. Use git format-patch -v<N> ... to get it automatically (where <N> is version number).

Signature · 2 lines
With Best Regards,
Andy Shevchenko