.../atomisp/pci/hive_isp_css_common/host/sp_private.h | 8 -------- 1 file changed, 8 deletions(-)
Adressed the following checkpath error:
WARNING: void function return statements are not generally useful.
Signed-off-by: Everton Colombo <e.rcolombo2@gmail.com>
---
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(-)
diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/sp_private.h b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/sp_private.h
index c69778411f2f..b03ae6658df3 100644
--- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/sp_private.h
+++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/sp_private.h
@@ -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(
--
2.34.1
On Thu, Apr 23, 2026 at 03:38:14PM -0300, Everton Colombo wrote: > --- > 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). -- With Best Regards, Andy Shevchenko
Hi Everton,
Thanks for your patch, please see my comments below.
On 4/24/26 5:55 AM, Andy Shevchenko wrote:
> On Thu, Apr 23, 2026 at 03:38:14PM -0300, Everton Colombo wrote:
>
>> ---
>> 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
> 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.pl
drivers/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
© 2016 - 2026 Red Hat, Inc.