* [PATCH 1/3] ath5k: fix incorrect indentation
@ 2016-02-29 1:07 Bob Copeland
2016-02-29 1:07 ` [PATCH 2/3] ath9k: fix a misleading indentation Bob Copeland
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bob Copeland @ 2016-02-29 1:07 UTC (permalink / raw)
To: linux-wireless; +Cc: Bob Copeland
smatch said:
drivers/net/wireless/ath/ath5k/phy.c:1449 ath5k_hw_channel() warn: inconsistent indenting
drivers/net/wireless/ath/ath5k/reset.c:637 ath5k_hw_on_hold() warn: inconsistent indenting
drivers/net/wireless/ath/ath5k/reset.c:702 ath5k_hw_nic_wakeup() warn: inconsistent indenting
All of these lines were indented a tabstop too far.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
---
drivers/net/wireless/ath/ath5k/phy.c | 2 +-
drivers/net/wireless/ath/ath5k/reset.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 0fce1c76638e..98ee85456321 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -1446,7 +1446,7 @@ ath5k_hw_channel(struct ath5k_hw *ah,
"channel frequency (%u MHz) out of supported "
"band range\n",
channel->center_freq);
- return -EINVAL;
+ return -EINVAL;
}
/*
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index 99e62f99a182..4b1c87fa15ac 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -634,7 +634,7 @@ ath5k_hw_on_hold(struct ath5k_hw *ah)
ret = ath5k_hw_nic_reset(ah, AR5K_RESET_CTL_PCU |
AR5K_RESET_CTL_MAC | AR5K_RESET_CTL_DMA |
AR5K_RESET_CTL_PHY | AR5K_RESET_CTL_PCI);
- usleep_range(2000, 2500);
+ usleep_range(2000, 2500);
} else {
ret = ath5k_hw_nic_reset(ah, AR5K_RESET_CTL_PCU |
AR5K_RESET_CTL_BASEBAND | bus_flags);
@@ -699,7 +699,7 @@ ath5k_hw_nic_wakeup(struct ath5k_hw *ah, struct ieee80211_channel *channel)
ret = ath5k_hw_nic_reset(ah, AR5K_RESET_CTL_PCU |
AR5K_RESET_CTL_MAC | AR5K_RESET_CTL_DMA |
AR5K_RESET_CTL_PHY | AR5K_RESET_CTL_PCI);
- usleep_range(2000, 2500);
+ usleep_range(2000, 2500);
} else {
if (ath5k_get_bus_type(ah) == ATH_AHB)
ret = ath5k_hw_wisoc_reset(ah, AR5K_RESET_CTL_PCU |
--
2.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 2/3] ath9k: fix a misleading indentation
2016-02-29 1:07 [PATCH 1/3] ath5k: fix incorrect indentation Bob Copeland
@ 2016-02-29 1:07 ` Bob Copeland
2016-02-29 1:07 ` [PATCH 3/3] ath9k_htc: fix up indents with spaces Bob Copeland
2016-03-11 12:17 ` [PATCH 1/3] ath5k: fix incorrect indentation Valo, Kalle
2 siblings, 0 replies; 4+ messages in thread
From: Bob Copeland @ 2016-02-29 1:07 UTC (permalink / raw)
To: linux-wireless; +Cc: Bob Copeland
These lines belong inside the if-statement above, not in the
main body of the switch.
Found by smatch.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
---
drivers/net/wireless/ath/ath9k/ar9003_phy.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
index 201425e7f9cb..3e011f84211f 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
@@ -1332,11 +1332,11 @@ skip_ws_det:
chan->channel,
aniState->mrcCCK ? "on" : "off",
is_on ? "on" : "off");
- if (is_on)
- ah->stats.ast_ani_ccklow++;
- else
- ah->stats.ast_ani_cckhigh++;
- aniState->mrcCCK = is_on;
+ if (is_on)
+ ah->stats.ast_ani_ccklow++;
+ else
+ ah->stats.ast_ani_cckhigh++;
+ aniState->mrcCCK = is_on;
}
break;
}
--
2.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] ath9k_htc: fix up indents with spaces
2016-02-29 1:07 [PATCH 1/3] ath5k: fix incorrect indentation Bob Copeland
2016-02-29 1:07 ` [PATCH 2/3] ath9k: fix a misleading indentation Bob Copeland
@ 2016-02-29 1:07 ` Bob Copeland
2016-03-11 12:17 ` [PATCH 1/3] ath5k: fix incorrect indentation Valo, Kalle
2 siblings, 0 replies; 4+ messages in thread
From: Bob Copeland @ 2016-02-29 1:07 UTC (permalink / raw)
To: linux-wireless; +Cc: Bob Copeland
Use tabs here. Found by smatch.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
---
drivers/net/wireless/ath/ath9k/htc_drv_init.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
index 8647ab77c019..c2249ad54085 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
@@ -262,11 +262,11 @@ static void ath9k_multi_regread(void *hw_priv, u32 *addr,
__be32 tmpval[8];
int i, ret;
- for (i = 0; i < count; i++) {
- tmpaddr[i] = cpu_to_be32(addr[i]);
- }
+ for (i = 0; i < count; i++) {
+ tmpaddr[i] = cpu_to_be32(addr[i]);
+ }
- ret = ath9k_wmi_cmd(priv->wmi, WMI_REG_READ_CMDID,
+ ret = ath9k_wmi_cmd(priv->wmi, WMI_REG_READ_CMDID,
(u8 *)tmpaddr , sizeof(u32) * count,
(u8 *)tmpval, sizeof(u32) * count,
100);
@@ -275,9 +275,9 @@ static void ath9k_multi_regread(void *hw_priv, u32 *addr,
"Multiple REGISTER READ FAILED (count: %d)\n", count);
}
- for (i = 0; i < count; i++) {
- val[i] = be32_to_cpu(tmpval[i]);
- }
+ for (i = 0; i < count; i++) {
+ val[i] = be32_to_cpu(tmpval[i]);
+ }
}
static void ath9k_regwrite_multi(struct ath_common *common)
--
2.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/3] ath5k: fix incorrect indentation
2016-02-29 1:07 [PATCH 1/3] ath5k: fix incorrect indentation Bob Copeland
2016-02-29 1:07 ` [PATCH 2/3] ath9k: fix a misleading indentation Bob Copeland
2016-02-29 1:07 ` [PATCH 3/3] ath9k_htc: fix up indents with spaces Bob Copeland
@ 2016-03-11 12:17 ` Valo, Kalle
2 siblings, 0 replies; 4+ messages in thread
From: Valo, Kalle @ 2016-03-11 12:17 UTC (permalink / raw)
To: Bob Copeland; +Cc: linux-wireless@vger.kernel.org
Bob Copeland <me@bobcopeland.com> writes:
> smatch said:
>
> drivers/net/wireless/ath/ath5k/phy.c:1449 ath5k_hw_channel() warn: inconsistent indenting
> drivers/net/wireless/ath/ath5k/reset.c:637 ath5k_hw_on_hold() warn: inconsistent indenting
> drivers/net/wireless/ath/ath5k/reset.c:702 ath5k_hw_nic_wakeup() warn: inconsistent indenting
>
> All of these lines were indented a tabstop too far.
>
> Signed-off-by: Bob Copeland <me@bobcopeland.com>
All three applied to ath.git, thanks.
--
Kalle Valo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-11 12:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29 1:07 [PATCH 1/3] ath5k: fix incorrect indentation Bob Copeland
2016-02-29 1:07 ` [PATCH 2/3] ath9k: fix a misleading indentation Bob Copeland
2016-02-29 1:07 ` [PATCH 3/3] ath9k_htc: fix up indents with spaces Bob Copeland
2016-03-11 12:17 ` [PATCH 1/3] ath5k: fix incorrect indentation Valo, Kalle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.