Discussion:
[ath9k-devel] [patch] ath9k: indent an if statement
Dan Carpenter
2016-08-03 18:43:39 UTC
Permalink
It looks like this code is correct, but it just needs to be indented a
bit.

Signed-off-by: Dan Carpenter <***@oracle.com>

diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index a394622..eb00724 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -919,7 +919,7 @@ static void ath9k_vif_iter_set_beacon(struct ath9k_vif_iter_data *iter_data,
} else {
if (iter_data->primary_beacon_vif->type != NL80211_IFTYPE_AP &&
vif->type == NL80211_IFTYPE_AP)
- iter_data->primary_beacon_vif = vif;
+ iter_data->primary_beacon_vif = vif;
}

iter_data->beacons = true;
Julian Calaby
2016-08-06 14:57:34 UTC
Permalink
Hi All,
Post by Dan Carpenter
It looks like this code is correct, but it just needs to be indented a
bit.
Looks right to me.

Reviewed-by: Julian Calaby <***@gmail.com>

Thanks,
--
Julian Calaby

Email: ***@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
Kalle Valo
2016-08-31 08:28:52 UTC
Permalink
Post by Dan Carpenter
It looks like this code is correct, but it just needs to be indented a
bit.
Doesn't apply anymore:

Importing patch "ath9k-indent-an-if-statement" ... error: patch failed: drivers/net/wireless/ath/ath9k/main.c:919
error: drivers/net/wireless/ath/ath9k/main.c: patch does not apply
stg import: Diff does not apply cleanly
--
Kalle Valo
Loading...