media: atomisp: Remove unnecessary function return
Subsystems (4)
PATCH 1/1 media: atomisp: Remove unnecessary function return
Adressed the following checkpath error:
WARNING: void function return statements are not generally useful.
---
Hey, this is my first patch! Any feedback would be appreciated!
--- .../atomisp/pci/hive_isp_css_common/host/sp_private.h | 8 -------- 1 file changed, 8 deletions(-)
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/sp_private.h +0 -8
@@ -21,7 +21,6 @@ STORAGE_CLASS_SP_C void sp_ctrl_store(assert (ID <N_SP_ID );assert (SP_CTRL_BASE [ID ] != (hrt_address)-1 );ia_css_device_store_uint32 (SP_CTRL_BASE [ID ] + reg *sizeof (hrt_data), value); -return ; } STORAGE_CLASS_SP_C hrt_data sp_ctrl_load(
@@ -51,7 +50,6 @@ STORAGE_CLASS_SP_C void sp_ctrl_setbit(hrt_data data =sp_ctrl_load (ID , reg);sp_ctrl_store (ID , reg, (data | (1UL << bit))); -return ; } STORAGE_CLASS_SP_C void sp_ctrl_clearbit(
@@ -62,7 +60,6 @@ STORAGE_CLASS_SP_C void sp_ctrl_clearbit(hrt_data data =sp_ctrl_load (ID , reg);sp_ctrl_store (ID , reg, (data & ~(1UL << bit))); -return ; } STORAGE_CLASS_SP_C void sp_dmem_store(
@@ -74,7 +71,6 @@ STORAGE_CLASS_SP_C void sp_dmem_store(assert (ID <N_SP_ID );assert (SP_DMEM_BASE [ID ] != (hrt_address)-1 );ia_css_device_store (SP_DMEM_BASE [ID ] + addr, data, size); -return ; } STORAGE_CLASS_SP_C void sp_dmem_load(
@@ -86,7 +82,6 @@ STORAGE_CLASS_SP_C void sp_dmem_load(assert (ID <N_SP_ID );assert (SP_DMEM_BASE [ID ] != (hrt_address)-1 );ia_css_device_load (SP_DMEM_BASE [ID ] + addr, data, size); -return ; } STORAGE_CLASS_SP_C void sp_dmem_store_uint8(
@@ -98,7 +93,6 @@ STORAGE_CLASS_SP_C void sp_dmem_store_uint8(assert (SP_DMEM_BASE [ID ] != (hrt_address)-1 ); (void )ID ;ia_css_device_store_uint8 (SP_DMEM_BASE [SP0_ID ] + addr, data); -return ; } STORAGE_CLASS_SP_C void sp_dmem_store_uint16(
@@ -110,7 +104,6 @@ STORAGE_CLASS_SP_C void sp_dmem_store_uint16(assert (SP_DMEM_BASE [ID ] != (hrt_address)-1 ); (void )ID ;ia_css_device_store_uint16 (SP_DMEM_BASE [SP0_ID ] + addr, data); -return ; } STORAGE_CLASS_SP_C void sp_dmem_store_uint32(
@@ -122,7 +115,6 @@ STORAGE_CLASS_SP_C void sp_dmem_store_uint32(assert (SP_DMEM_BASE [ID ] != (hrt_address)-1 ); (void )ID ;ia_css_device_store_uint32 (SP_DMEM_BASE [SP0_ID ] + addr, data); -return ; } STORAGE_CLASS_SP_C uint8_t sp_dmem_load_uint8(
Signature · 1 line
2.34.1
Quoted 2 lines · Everton Colombo
---
Hey, this is my first patch! Any feedback would be appreciated!
Please, start reviewing others' patches for the same driver and read other reviews and learn from them first.
I'm not going to repeat what I said already several times on a patches like this over the very same driver (atomisp).
Signature · 2 lines
With Best Regards, Andy Shevchenko
Hi Everton,
Thanks for your patch, please see my comments below.
Quoted 8 lines · Andy Shevchenko
Quoted 2 lines · Everton Colombo
---
Hey, this is my first patch! Any feedback would be appreciated!Please, start reviewing others' patches for the same driver and read other reviews and learn from them first.
fyi, you can check previous reviews on this driver on lore.kernel.org, for instance: https://lore.kernel.org/all/?q=atomisp
Quoted 3 lines
I'm not going to repeat what I said already several times on a patches like this over the very same driver (atomisp).
You can see in the previous reviews a few comments to not fix just a single occurrence of the issue on the driver, but to fix in a set of files or in the entire driver.
This same error occurs multiple times on the same file, and also in the entire driver.
My suggestion is for you to fix all this sort of errors under the folder
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
otherwise it might become a big commit for a first contribution (unless others think otherwise).
i.e.:
./scripts/checkpatch.pldrivers/staging/media/atomisp/pci/hive_isp_css_common/host/* | \
grep -a3 "WARNING: void function return statements are not generally
useful"
I hope this helps.
Regards,
Helen