Skip to content

Commit

Permalink
r8169: remove unnecessary cast of readl()'s return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junchang Wang authored and David S. Miller committed May 31, 2010
1 parent b8b6117 commit 06f555f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static const int multicast_filter_limit = 32;
#define RTL_W32(reg, val32) writel ((val32), ioaddr + (reg))
#define RTL_R8(reg) readb (ioaddr + (reg))
#define RTL_R16(reg) readw (ioaddr + (reg))
#define RTL_R32(reg) ((unsigned long) readl (ioaddr + (reg)))
#define RTL_R32(reg) readl (ioaddr + (reg))

enum mac_version {
RTL_GIGA_MAC_NONE = 0x00,
Expand Down

0 comments on commit 06f555f

Please sign in to comment.