[PATCH] drivers/net/s2io.h - lvalue fix
From: Stephane Wirtel
Date: Mon Aug 29 2005 - 17:25:58 EST
Hi all ,
Sorry if I don't send this patch to the maintainer of s2io, but I don't
know who is he.
This patch is based on Kernel 2.6.13 release from the Linus tree.
Is there a process to send patch to the mailing list ?
Best regards,
Stephane
--
Stephane Wirtel <stephane.wirtel@xxxxxxxxxxxx>
<stephane.wirtel@xxxxxxxxx>
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h
--- a/drivers/net/s2io.h
+++ b/drivers/net/s2io.h
@@ -762,8 +762,8 @@ static inline u64 readq(void __iomem *ad
{
u64 ret = 0;
ret = readl(addr + 4);
- (u64) ret <<= 32;
- (u64) ret |= readl(addr);
+ ret <<= 32;
+ ret |= readl(addr);
return ret;
}