Skip to content

Commit

Permalink
[PATCH] s2io build fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Aug 30, 2005
1 parent 8f3d17f commit 7ef24b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/s2io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7ef24b6

Please sign in to comment.