staging: media: atomisp: Remove unneeded return statements in irq.c
Subsystems (4)
PATCH 1/1 staging: media: atomisp: Remove unneeded return statements in irq.c
Remove the bare return statements at the end of void functions, along with the blank lines before them. They have no effect and checkpatch.pl warns about them:
WARNING: void function return statements are not generally useful
Signed-off-by Hezekiah Mogere Joseph Mayaka <[email protected]>
--- .../media/atomisp/pci/hive_isp_css_common/host/irq.c | 12 ------------ 1 file changed, 12 deletions(-)
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/irq.c +0 -12
@@ -60,7 +60,6 @@ void irq_clear_all(irq_reg_store (ID , _HRT_IRQ_CONTROLLER_CLEAR_REG_IDX, mask); -return ; }/*
@@ -104,8 +103,6 @@ void irq_enable_channel( _HRT_IRQ_CONTROLLER_MASK_REG_IDX, mask);irq_wait_for_write_complete (ID ); - -return ; } void irq_enable_pulse(
@@ -120,7 +117,6 @@ void irq_enable_pulse(/* output is given as edge, not pulse */ irq_reg_store (ID , _HRT_IRQ_CONTROLLER_EDGE_NOT_PULSE_REG_IDX, edge_out); -return ; } void irq_disable_channel(
@@ -150,8 +146,6 @@ void irq_disable_channel( _HRT_IRQ_CONTROLLER_CLEAR_REG_IDX, me);irq_wait_for_write_complete (ID ); - -return ; } enum hrt_isp_css_irq_status irq_get_channel_id(
@@ -212,7 +206,6 @@ void irq_raise( (unsigned int)addr, 1);gp_device_reg_store (GP_DEVICE0_ID , (unsigned int )addr,0 ); -return ; }bool any_virq_signal (void )
@@ -251,7 +244,6 @@ void cnd_virq_enable_channel(irq_disable_channel (IRQ0_ID ,IRQ_NESTING_ID [ID ]); } } -return ; }void virq_clear_all (void )
@@ -260,8 +252,6 @@ void virq_clear_all(void)for (irq_id = (irq_ID_t )0 ; irq_id <N_IRQ_ID ; irq_id++)irq_clear_all (irq_id); - -return ; }enum hrt_isp_css_irq_status
@@ -302,8 +292,6 @@ void virq_clear_info(struct virq_info *irq_info)for (ID = (irq_ID_t )0 ;ID <N_IRQ_ID ;ID ++) irq_info->irq_status_reg[ID ] =0 ; - -return ; } enum hrt_isp_css_irq_status virq_get_channel_id(
Signature · 1 line
2.56.0
Quoted 6 lines · Hezekiah Mogere Joseph Mayaka
Remove the bare return statements at the end of void functions, along with the blank lines before them. They have no effect and checkpatch.pl warns about them:
WARNING: void function return statements are not generally useful
Only in a single file in the whole driver?
Signature · 2 lines
With Best Regards, Andy Shevchenko