mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 09:20:13 -04:00
net: ethernet: qualcomm: Unconstify function arguments passed by value
There is no benefit in marking "const" a pass-by-value (not a pointer) function argument, because it is passed as a copy on the stack. No code readability improvements, no additional compiler-time safety for misuse. Drop such redundant "const". Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Luo Jie <jie.luo@oss.qualcomm.com> Link: https://patch.msgid.link/20260702094908.79859-3-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
8436f31673
commit
e0421c6fd3
@@ -1380,7 +1380,7 @@ int ppe_ring_queue_map_set(struct ppe_device *ppe_dev, int ring_id, u32 *queue_m
|
||||
}
|
||||
|
||||
static int ppe_config_bm_threshold(struct ppe_device *ppe_dev, int bm_port_id,
|
||||
const struct ppe_bm_port_config port_cfg)
|
||||
struct ppe_bm_port_config port_cfg)
|
||||
{
|
||||
u32 reg, val, bm_fc_val[2];
|
||||
int ret;
|
||||
@@ -1586,7 +1586,7 @@ static int ppe_config_qm(struct ppe_device *ppe_dev)
|
||||
}
|
||||
|
||||
static int ppe_node_scheduler_config(struct ppe_device *ppe_dev,
|
||||
const struct ppe_scheduler_port_config config)
|
||||
struct ppe_scheduler_port_config config)
|
||||
{
|
||||
struct ppe_scheduler_cfg sch_cfg;
|
||||
int ret, i;
|
||||
|
||||
Reference in New Issue
Block a user