projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab98c00
)
net: dsa: mv88e6xxx: use link-down-define instead of plain value
author
Hubert Feurstein
<h.feurstein@gmail.com>
Tue, 30 Jul 2019 10:11:42 +0000
(12:11 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 30 Jul 2019 16:56:20 +0000
(09:56 -0700)
Using the define here makes the code more expressive.
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/mv88e6xxx/chip.c
b/drivers/net/dsa/mv88e6xxx/chip.c
index
c97dea4
..
a0f288e
100644
(file)
--- a/
drivers/net/dsa/mv88e6xxx/chip.c
+++ b/
drivers/net/dsa/mv88e6xxx/chip.c
@@
-430,7
+430,7
@@
int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, int link,
return 0;
/* Port's MAC control must not be changed unless the link is down */
- err = chip->info->ops->port_set_link(chip, port,
0
);
+ err = chip->info->ops->port_set_link(chip, port,
LINK_FORCED_DOWN
);
if (err)
return err;