Skip to contentSkip to conversation

staging: atomisp: remove useless return statement in atomisp_cmd.c

PATCH In review Oskar Ray-Frayssinet 3 participants 3 messages Mar 1 – Apr 18

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

PATCH 1/1 staging: atomisp: remove useless return statement in atomisp_cmd.c

Remove unnecessary return statement at the end of void function.

---
 drivers/staging/media/atomisp/pci/atomisp_cmd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +0 -1
index d5c5895e06e2..de0446997154 100644
@@ -1417,7 +1417,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,
Signature · 1 line
2.43.0
#2 lore raw
In reply to Oskar Ray-Frayssinet

Hi Oskar,

Quoted 12 lines · Oskar Ray-Frayssinet

Remove unnecessary return statement at the end of void function.

---
 drivers/staging/media/atomisp/pci/atomisp_cmd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +0 -0
index d5c5895e06e2..de0446997154 100644

drivers/staging/media/atomisp/pci/atomisp_cmd.c static void atomisp_update_grid_info(struct atomisp_sub_device *asd, · line 1420

Quoted 4 lines
drivers/staging/media/atomisp/pci/atomisp_cmd.c +0 -1
@@ -1417,7 +1417,6 @@ static void atomisp_update_grid_info(struct atomisp_sub_device *asd,
 
 err:
 	atomisp_css_free_stat_buffers(asd);
-	return;

I'm sure there are more of these in the driver.

Quoted 3 lines
drivers/staging/media/atomisp/pci/atomisp_cmd.c +0 -0
 }
 
 static void atomisp_curr_user_grid_info(struct atomisp_sub_device *asd,
Signature · 3 lines
Regards,

Sakari Ailus