net: ksz884x: optimize netdev_open flow and remove static variable
authorwujunwen <wudaemon@163.com>
Tue, 15 Mar 2022 12:28:57 +0000 (12:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Mar 2022 02:18:41 +0000 (19:18 -0700)
commitaf1147b236da553544bed1ed8b683510e1278308
treedb555ad58b0a2d29b75c0480882ec668a107b0f1
parenta8df216630fedadc4e8cc086f0e2e612f9c3d1f4
net: ksz884x: optimize netdev_open flow and remove static variable

remove the static next_jiffies variable, and reinitialize next_jiffies
to simplify netdev_open

Signed-off-by: wujunwen <wudaemon@163.com>
Link: https://lore.kernel.org/r/20220315122857.78601-1-wudaemon@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/micrel/ksz884x.c