Re: [PATCH v2] media: staging: atomisp: Remove unnecessary return statement in void function
From: Andy Shevchenko
Date: Tue Mar 10 2026 - 12:20:36 EST
On Tue, Mar 10, 2026 at 03:27:44PM +0100, Tomasz Unger wrote:
> 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.
Is this the only one problem of a kind in the whole driver? If yes, don't
forget mentioning that in the comment / changelog block below.
> Signed-off-by: Tomasz Unger <tomasz.unger@xxxxxxxx>
> ---
> Changes in v2:
> - 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
> - Link to v1: https://lore.kernel.org/r/20260305-atomisp-remove-void-return-v2b-v1-1-902e534ecb48@xxxxxxxx
--
With Best Regards,
Andy Shevchenko