Message ID | ada8wromu0g.fsf@cisco.com |
---|---|
State | Rejected, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 9acb5d7..1fb0d2f 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c @@ -51,8 +51,8 @@ MODULE_VERSION(DRV_MODULE_VERSION); #ifndef readq static u64 readq(void __iomem *reg) { - return (((u64)readl(reg + 0x4UL) << 32) | - (u64)readl(reg)); + u64 v = readl(reg); + return v | (u64) readl(reg + 0x4UL) << 32; } static void writeq(u64 val, void __iomem *reg)