forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commitff198cd
net: phy: leds: Refactor "no link" handler into a separate function
Currently, phy_led_trigger_change_speed() is handling a "no link" conditionlike it was some kind of an error (using "goto" to a code at the functionend).However, having no link at PHY is an ordinary operational state, so let'shandle it in an appropriately named separate function so it is more obviouswhat the code is doing.Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>Signed-off-by: David S. Miller <davem@davemloft.net>1 parentfffcefe commitff198cd
1 file changed
+10
-10
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 |
| |
31 | 39 |
| |
32 | 40 |
| |
33 | 41 |
| |
34 | 42 |
| |
35 |
| - | |
| 43 | + | |
36 | 44 |
| |
37 | 45 |
| |
38 | 46 |
| |
| |||
42 | 50 |
| |
43 | 51 |
| |
44 | 52 |
| |
45 |
| - | |
| 53 | + | |
46 | 54 |
| |
47 | 55 |
| |
48 | 56 |
| |
49 | 57 |
| |
50 | 58 |
| |
51 | 59 |
| |
52 | 60 |
| |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
|
0 commit comments
Comments
(0)