summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>2026-07-02 11:49:09 +0200
committerPaolo Abeni <pabeni@redhat.com>2026-07-07 11:43:27 +0200
commite0421c6fd39d9e775fef85faab82bae7b49d6c8f (patch)
treec0372b6bc59c3a04fbec702a85d4086482c7db25
parent8436f3167344dfeed5866bb0b3972d7992716304 (diff)
downloadlinux-e0421c6fd39d9e775fef85faab82bae7b49d6c8f.tar.gz
linux-e0421c6fd39d9e775fef85faab82bae7b49d6c8f.zip
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>
-rw-r--r--drivers/net/ethernet/qualcomm/ppe/ppe_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qualcomm/ppe/ppe_config.c b/drivers/net/ethernet/qualcomm/ppe/ppe_config.c
index e9a0e22907a6..94f69c077949 100644
--- a/drivers/net/ethernet/qualcomm/ppe/ppe_config.c
+++ b/drivers/net/ethernet/qualcomm/ppe/ppe_config.c
@@ -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 @@ qm_config_fail:
}
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;