projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2724a74
)
ath5k: don't use volatile, it's not needed
author
Pavel Roskin
<proski@gnu.org>
Thu, 7 Jul 2011 22:13:55 +0000
(18:13 -0400)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 8 Jul 2011 15:44:31 +0000
(11:44 -0400)
Signed-off-by: Pavel Roskin <proski@gnu.org>
The reg variable is only used by __raw_writel() and __raw_readl(), which
should guarantee memory access in the right order.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/reset.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/reset.c
b/drivers/net/wireless/ath/ath5k/reset.c
index 3188204d8fda7fd58cb5865d1e399b5bf5378f54..bbeef3aac93f06b48f6fad467c6fd46b17771cf0 100644
(file)
--- a/
drivers/net/wireless/ath/ath5k/reset.c
+++ b/
drivers/net/wireless/ath/ath5k/reset.c
@@
-375,7
+375,7
@@
static int ath5k_hw_nic_reset(struct ath5k_hw *ah, u32 val)
static int ath5k_hw_wisoc_reset(struct ath5k_hw *ah, u32 flags)
{
u32 mask = flags ? flags : ~0U;
-
volatile __iomem u32
*reg;
+
u32 __iomem
*reg;
u32 regval;
u32 val = 0;