From: Al Viro Date: Fri, 30 Sep 2005 03:19:43 +0000 (+0100) Subject: [PATCH] volatile unsigned short f(...) doesn't make sense X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66df3bbf0701b7408a1067c4b819aceee2686bba;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] volatile unsigned short f(...) doesn't make sense Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/bmac.c b/drivers/net/bmac.c index 8dc657fc8afb..60dba4a1ca5c 100644 --- a/drivers/net/bmac.c +++ b/drivers/net/bmac.c @@ -218,7 +218,7 @@ void bmwrite(struct net_device *dev, unsigned long reg_offset, unsigned data ) static inline -volatile unsigned short bmread(struct net_device *dev, unsigned long reg_offset ) +unsigned short bmread(struct net_device *dev, unsigned long reg_offset ) { return in_le16((void __iomem *)dev->base_addr + reg_offset); }