From: Junchang Wang Date: Sun, 30 May 2010 02:26:07 +0000 (+0000) Subject: r8169: remove unnecessary cast of readl()'s return value X-Git-Tag: v3.0~4150^2~721 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06f555f35fcc917c2b3c32fe151ec370ad47db35;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 217e709..ca93cdf 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -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,