Skip to contentSkip to conversation

qtnfmac: remove braces around single statement blocks

PATCH In review Sebin Sebastian 2 participants 2 messages Aug 2, 2022 – Aug 9, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +1 -3
index 1593e810b3ca..8e478118a1ca 100644
@@ -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;
Signature · 1 line
2.34.1
#1 lore raw

Re: [-next] wifi: qtnfmac: remove braces around single statement blocks

Quoted 5 lines · Sebin Sebastian

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

Patch applied to wireless-next.git, thanks.

6b013c3d47be wifi: qtnfmac: remove braces around single statement blocks

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches