]> Git Repo - linux.git/commitdiff
[PATCH] s2io build fix
authorAndrew Morton <[email protected]>
Fri, 26 Aug 2005 00:14:46 +0000 (17:14 -0700)
committerJeff Garzik <[email protected]>
Tue, 30 Aug 2005 04:37:35 +0000 (00:37 -0400)
Damir Perisa <[email protected]> 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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
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;
 }
This page took 0.055584 seconds and 4 git commands to generate.