mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
net: dsa: constify cpu_dp member of dsa_port
A DSA port has a dedicated CPU port assigned to it, stored in the cpu_dp member. It is not meant to be modified by a port, thus make it const. Signed-off-by: Vivien Didelot <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b2d0f5d5dc
commit
24a9332a58
2 changed files with 2 additions and 2 deletions
|
|
@ -1147,7 +1147,7 @@ static void dsa_slave_notify(struct net_device *dev, unsigned long val)
|
|||
|
||||
int dsa_slave_create(struct dsa_port *port)
|
||||
{
|
||||
struct dsa_port *cpu_dp = port->cpu_dp;
|
||||
const struct dsa_port *cpu_dp = port->cpu_dp;
|
||||
struct net_device *master = cpu_dp->master;
|
||||
struct dsa_switch *ds = port->ds;
|
||||
const char *name = port->name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue