提交 be6cb66d 编写于 作者: P Philippe De Muyter 提交者: Linus Torvalds

m68knommu: improve mii_do_cmd code in FEC driver

Improve the readability of mii_do_cmd().
Signed-off-by: NPhilippe De Muyter <phdm@macqel.be>
Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 dbf18c8f
...@@ -766,14 +766,11 @@ mii_queue(struct net_device *dev, int regval, void (*func)(uint, struct net_devi ...@@ -766,14 +766,11 @@ mii_queue(struct net_device *dev, int regval, void (*func)(uint, struct net_devi
static void mii_do_cmd(struct net_device *dev, const phy_cmd_t *c) static void mii_do_cmd(struct net_device *dev, const phy_cmd_t *c)
{ {
int k;
if(!c) if(!c)
return; return;
for(k = 0; (c+k)->mii_data != mk_mii_end; k++) { for (; c->mii_data != mk_mii_end; c++)
mii_queue(dev, (c+k)->mii_data, (c+k)->funct); mii_queue(dev, c->mii_data, c->funct);
}
} }
static void mii_parse_sr(uint mii_reg, struct net_device *dev) static void mii_parse_sr(uint mii_reg, struct net_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册