diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2007-12-05 14:57:37 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-07 15:01:44 -0500 |
commit | abf9b902059fb1d569b64e8645a76f0fccbdbbe5 (patch) | |
tree | 9e9d6ecdc627c5f6a69fba61b56c21ea29063f9a /drivers/net | |
parent | c32bc6e9b0778c891f7f3b97cd05c8cdf98b6721 (diff) |
e100: cleanup unneeded math
No need to convert to bytes and back - cleanup unneeded code.
Adapted from fix from 'Roel Kluin <12o3l@tiscali.nl>'
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/e100.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index 3dbaec680b46..e1c8a0d023ea 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -2214,13 +2214,11 @@ static void e100_get_drvinfo(struct net_device *netdev, | |||
2214 | strcpy(info->bus_info, pci_name(nic->pdev)); | 2214 | strcpy(info->bus_info, pci_name(nic->pdev)); |
2215 | } | 2215 | } |
2216 | 2216 | ||
2217 | #define E100_PHY_REGS 0x1C | ||
2217 | static int e100_get_regs_len(struct net_device *netdev) | 2218 | static int e100_get_regs_len(struct net_device *netdev) |
2218 | { | 2219 | { |
2219 | struct nic *nic = netdev_priv(netdev); | 2220 | struct nic *nic = netdev_priv(netdev); |
2220 | #define E100_PHY_REGS 0x1C | 2221 | return 1 + E100_PHY_REGS + sizeof(nic->mem->dump_buf); |
2221 | #define E100_REGS_LEN 1 + E100_PHY_REGS + \ | ||
2222 | sizeof(nic->mem->dump_buf) / sizeof(u32) | ||
2223 | return E100_REGS_LEN * sizeof(u32); | ||
2224 | } | 2222 | } |
2225 | 2223 | ||
2226 | static void e100_get_regs(struct net_device *netdev, | 2224 | static void e100_get_regs(struct net_device *netdev, |