]> err.no Git - linux-2.6/commitdiff
[PATCH] s2io build fix
authorAndrew Morton <akpm@osdl.org>
Fri, 26 Aug 2005 00:14:46 +0000 (17:14 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 30 Aug 2005 04:37:35 +0000 (00:37 -0400)
Damir Perisa <damir.perisa@solnet.ch> reports:

 drivers/net/s2io.h:765: error: invalid lvalue in assignment
 drivers/net/s2io.h:766: error: invalid lvalue in assignment

That's a gcc4 error.  I don't see why the casts are there anyway..

Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/s2io.h

index 5d9270730ca23c9a9a44fa14941f132e94393de9..bc64d967f08094abc2a2145696d8b43be70aec85 100644 (file)
@@ -762,8 +762,8 @@ static inline u64 readq(void __iomem *addr)
 {
        u64 ret = 0;
        ret = readl(addr + 4);
-       (u64) ret <<= 32;
-       (u64) ret |= readl(addr);
+       ret <<= 32;
+       ret |= readl(addr);
 
        return ret;
 }