diff options
author | Philippe De Muyter <phdm@macqel.be> | 2007-10-23 00:37:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-23 11:32:34 -0400 |
commit | be6cb66da76fe089a4032a85c3825223a2216beb (patch) | |
tree | f55082c48f1558516146048e5c22c4ea137bdcaf /drivers/net/fec.c | |
parent | dbf18c8f62cd87473d6db8c16afe4207bc370d3e (diff) |
m68knommu: improve mii_do_cmd code in FEC driver
Improve the readability of mii_do_cmd().
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r-- | drivers/net/fec.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index e0d875531e6e..0fbf1bbbaee9 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c | |||
@@ -766,14 +766,11 @@ mii_queue(struct net_device *dev, int regval, void (*func)(uint, struct net_devi | |||
766 | 766 | ||
767 | static void mii_do_cmd(struct net_device *dev, const phy_cmd_t *c) | 767 | static void mii_do_cmd(struct net_device *dev, const phy_cmd_t *c) |
768 | { | 768 | { |
769 | int k; | ||
770 | |||
771 | if(!c) | 769 | if(!c) |
772 | return; | 770 | return; |
773 | 771 | ||
774 | for(k = 0; (c+k)->mii_data != mk_mii_end; k++) { | 772 | for (; c->mii_data != mk_mii_end; c++) |
775 | mii_queue(dev, (c+k)->mii_data, (c+k)->funct); | 773 | mii_queue(dev, c->mii_data, c->funct); |
776 | } | ||
777 | } | 774 | } |
778 | 775 | ||
779 | static void mii_parse_sr(uint mii_reg, struct net_device *dev) | 776 | static void mii_parse_sr(uint mii_reg, struct net_device *dev) |