Commit 5d826b7
forcedeth: remove unnecessary carrier status check
Since netif_carrier_on() will do nothing if device's
carrier is already on, so it's unnecessary to do
carrier status check.
It's the same for netif_carrier_off().
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent f411af6 commit 5d826b7
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4248 | 4248 | | |
4249 | 4249 | | |
4250 | 4250 | | |
4251 | | - | |
4252 | | - | |
| 4251 | + | |
4253 | 4252 | | |
4254 | | - | |
4255 | | - | |
| 4253 | + | |
4256 | 4254 | | |
4257 | 4255 | | |
4258 | 4256 | | |
| |||
0 commit comments