aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunchang Wang <junchangwang@gmail.com>2010-05-29 22:26:07 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-31 03:27:48 -0400
commit06f555f35fcc917c2b3c32fe151ec370ad47db35 (patch)
tree9539c3045326fa69d3650932407c8eecbfa9051b
parentb8b611715dac6ae69ac9f9aad2760564e934434e (diff)
r8169: remove unnecessary cast of readl()'s return value
readl() returns a 32-bit integer on all platforms. There is no need to cast its return value. Signed-off-by: Junchang Wang <junchangwang@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/r8169.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 217e709bda3e..ca93cdf002a7 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -88,7 +88,7 @@ static const int multicast_filter_limit = 32;
88#define RTL_W32(reg, val32) writel ((val32), ioaddr + (reg)) 88#define RTL_W32(reg, val32) writel ((val32), ioaddr + (reg))
89#define RTL_R8(reg) readb (ioaddr + (reg)) 89#define RTL_R8(reg) readb (ioaddr + (reg))
90#define RTL_R16(reg) readw (ioaddr + (reg)) 90#define RTL_R16(reg) readw (ioaddr + (reg))
91#define RTL_R32(reg) ((unsigned long) readl (ioaddr + (reg))) 91#define RTL_R32(reg) readl (ioaddr + (reg))
92 92
93enum mac_version { 93enum mac_version {
94 RTL_GIGA_MAC_NONE = 0x00, 94 RTL_GIGA_MAC_NONE = 0x00,