summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebin Sebastian <mailmesebin00@gmail.com>2022-08-02 07:52:39 +0300
committerKalle Valo <kvalo@kernel.org>2022-08-09 09:00:18 +0300
commit6b013c3d47be86b07afb2e16da43499fb5b0a262 (patch)
tree444fcb98e6de2d96cf546e4189fadea5da2f68db
parent93fbc1ebd978cf408ef5765e9c1630fce9a8621b (diff)
downloadlinux-6b013c3d47be86b07afb2e16da43499fb5b0a262.tar.xz
wifi: qtnfmac: remove braces around single statement blocks
Remove braces around single statement blocks in order to improve readability. Also, an extra blank line was removed. Both warnings are reported by checkpatch.pl Signed-off-by: Sebin Sebastian <mailmesebin00@gmail.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220802045305.235684-1-mailmesebin00@gmail.com
-rw-r--r--drivers/net/wireless/quantenna/qtnfmac/cfg80211.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
index 1593e810b3ca..83df5977400e 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
@@ -721,9 +721,8 @@ qtnf_disconnect(struct wiphy *wiphy, struct net_device *dev,
return -EFAULT;
}
- if (vif->wdev.iftype != NL80211_IFTYPE_STATION) {
+ if (vif->wdev.iftype != NL80211_IFTYPE_STATION)
return -EOPNOTSUPP;
- }
ret = qtnf_cmd_send_disconnect(vif, reason_code);
if (ret)
@@ -750,7 +749,6 @@ qtnf_dump_survey(struct wiphy *wiphy, struct net_device *dev,
struct ieee80211_channel *chan;
int ret;
-
sband = wiphy->bands[NL80211_BAND_2GHZ];
if (sband && idx >= sband->n_channels) {
idx -= sband->n_channels;