Re: [PATCH] staging: media: atomisp: fix indentation and remove dead return

From: Dan Carpenter

Date: Sat Jul 11 2026 - 05:19:42 EST


On Sat, Jul 11, 2026 at 12:16:57PM +0400, erqeons wrote:
> Fix style issues reported by checkpatch.pl:
> - Remove unnecessary return statement in void function.
> - Convert spaces to tabs for function arguments indentation.

Split this into two patches.

>
> Signed-off-by: erqeons <erqeon@xxxxxxxxx>

Real name, please.

> ---
> drivers/staging/media/atomisp/pci/atomisp_cmd.c | 15 +++++++--------
> 1 file changed, 7 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/media/atomisp/pci/atomisp_cmd.c b/drivers/staging/media/atomisp/pci/atomisp_cmd.c
> index 6cd500d9f..fb1ae146b 100644
> --- a/drivers/staging/media/atomisp/pci/atomisp_cmd.c
> +++ b/drivers/staging/media/atomisp/pci/atomisp_cmd.c
> @@ -1419,7 +1419,6 @@ static void atomisp_update_grid_info(struct atomisp_sub_device *asd,
>
> err:
> atomisp_css_free_stat_buffers(asd);
> - return;
> }
>
> static void atomisp_curr_user_grid_info(struct atomisp_sub_device *asd,
> @@ -1885,8 +1884,8 @@ int atomisp_calculate_real_zoom_region(struct atomisp_sub_device *asd,
> * Function to check the zoom region whether is effective
> */
> static bool atomisp_check_zoom_region(
> - struct atomisp_sub_device *asd,
> - struct ia_css_dz_config *dz_config)
> + struct atomisp_sub_device *asd,
> + struct ia_css_dz_config *dz_config)


Normally we would align it like this:

static bool atomisp_check_zoom_region(struct atomisp_sub_device *asd,
struct ia_css_dz_config *dz_config)
{

regards,
dan carpenter