diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-11-18 06:27:18 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-19 10:46:04 +0000 |
commit | 54612b4a8bc78f4fc62f6c5639c89e4ea5a2ac79 (patch) | |
tree | 164f72c0c6754ccab1642f9c8e9560e817fb9a21 /drivers | |
parent | e291422c8f008c47a04788e98d557dc961d72777 (diff) | |
download | linux-54612b4a8bc78f4fc62f6c5639c89e4ea5a2ac79.tar.bz2 |
mlxsw: constify address in mlxsw_sp_port_dev_addr_set
Argument comes from netdev->dev_addr directly, it needs a const.
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index 5925db386b1b..4ce07f9905f6 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -303,7 +303,7 @@ int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, } static int mlxsw_sp_port_dev_addr_set(struct mlxsw_sp_port *mlxsw_sp_port, - unsigned char *addr) + const unsigned char *addr) { struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; char ppad_pl[MLXSW_REG_PPAD_LEN]; |