Skip to contentSkip to conversation

drivers/net/wireless/ath/ath9k/init.c:865: possible misleading indentation ?

ath9k-devel David Binderman 1 participant 1 message Dec 28, 2015

lore
Share & tools
lore
#0 lore raw

Hello there,

drivers/net/wireless/ath/ath9k/init.c:865:4: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation]

??????? if (ath9k_is_chanctx_enabled()) ??????????? hw->wiphy->interface_modes |= ??????????????????? BIT(NL80211_IFTYPE_P2P_DEVICE);

??????????? hw->wiphy->iface_combinations = if_comb; ??????????? hw->wiphy->n_iface_combinations = ARRAY_SIZE(if_comb);

iface_combinations and n_iface_combinations get assigned to every time, but the code is formatted to look as if this should only happen some of the time.

Regards

David Binderman