* [PATCH -next] qtnfmac: remove braces around single statement blocks
@ 2022-08-02 4:52 Sebin Sebastian
2022-08-09 6:00 ` [-next] wifi: " Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Sebin Sebastian @ 2022-08-02 4:52 UTC (permalink / raw)
Cc: mailmesebin00, Igor Mitsyanko, Sergey Matyukevich, Kalle Valo,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Johannes Berg, linux-wireless, netdev, linux-kernel
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>
---
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
index 1593e810b3ca..8e478118a1ca 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;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [-next] wifi: qtnfmac: remove braces around single statement blocks
2022-08-02 4:52 [PATCH -next] qtnfmac: remove braces around single statement blocks Sebin Sebastian
@ 2022-08-09 6:00 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2022-08-09 6:00 UTC (permalink / raw)
To: Sebin Sebastian
Sebin Sebastian <mailmesebin00@gmail.com> wrote:
> 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>
Patch applied to wireless-next.git, thanks.
6b013c3d47be wifi: qtnfmac: remove braces around single statement blocks
--
https://patchwork.kernel.org/project/linux-wireless/patch/20220802045305.235684-1-mailmesebin00@gmail.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-09 6:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 4:52 [PATCH -next] qtnfmac: remove braces around single statement blocks Sebin Sebastian
2022-08-09 6:00 ` [-next] wifi: " Kalle Valo
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.