Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2340835imn; Mon, 1 Aug 2022 21:59:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ttRfekwLO5J3LL7jYY/Ky8Uno33Ip2TZ2r3wfK8/89zfyl8t1qaPo4vEsB4SH191iYm621 X-Received: by 2002:a05:6402:ea9:b0:43b:b88f:62fe with SMTP id h41-20020a0564020ea900b0043bb88f62femr18454589eda.85.1659416340428; Mon, 01 Aug 2022 21:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659416340; cv=none; d=google.com; s=arc-20160816; b=wBS8j9xPB9uUV/AGOCLGfvU13Aauf4KBQ6YnmwEK+NbWE58FfnDyawUuA6M+EarZ18 5COHluv9w5AzDHqtoKXUkHslyfU/j0KLdi3MJShaZbY9xTIK90AoWMwicQFfRUzdA7Su nFxhux1xT30LD6UAADwBuUl7QQ3vG/Ii+z4FbUvA4c3TPDa7kMUAHPydzPoWvvGrfdWk /FGQhm2VaX4rp0TEWJygZkg280LTmyNunUDEnmhhRtOpIG/fdP864Ci2ZlRLbH7yGHYp AHrNw0qUJ4URf7orAvi6zNOtrZgG0Ht8oDFsD6oWvRE1H58U2w/o6lVleDsk59wcbECL VNMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=+KpNao5DG7AgBe+XvT6M4EMyYgz3pagE9PCUtC/M5Qs=; b=TFb+nTAyxxkZtxjvaMNpOMXbd84iK6SePHDRFcjtfVPHcQpIXLsy6PzibrLytIPZu0 yKjSYtT6iqhCx6S6VpGA1JePR3wEUOw9UNkQxAiEqS5NxQwIDfHCTOV6pM+/iSQ+BEI7 qaKmVx++jMLkUex8BTL0I8RxC6J9uCzglZw7szi7fuR0DL98Hq1PHv93WcPJEfvAyAFo G5u/HRAgJ8R3jSbJu+kAxCJCC68aLdD+0hcMrSqSf8th76sjKF9eBCjFHrZuJiP/p+sA VCY6nVnAV4LitdKCgIWWJMUbhoCCqwgC0R0mJAi2YTy6jxmT8M5bUD2JTPvip+yTCc7I FZDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="p/rl1dPU"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a50c3cd000000b0043bdf90b6a8si10838673edf.449.2022.08.01.21.58.39; Mon, 01 Aug 2022 21:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="p/rl1dPU"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235528AbiHBExr (ORCPT + 66 others); Tue, 2 Aug 2022 00:53:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232033AbiHBExp (ORCPT ); Tue, 2 Aug 2022 00:53:45 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B892873B; Mon, 1 Aug 2022 21:53:44 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id t22so4661118pjy.1; Mon, 01 Aug 2022 21:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=+KpNao5DG7AgBe+XvT6M4EMyYgz3pagE9PCUtC/M5Qs=; b=p/rl1dPUeQ2vYN5Dhcil7pLpG1hqHac7bLGJpzTs90nEs2OGv2s/9FtL19vlUmt9oM XVIl7uV+SyCMvJ+CBjAHZD4IjXYGkbKees9UVyr/IOq1g3eynIbqYvmmeMDiLEu+6wj5 U7JcYfXB+pp+i06JTiqaKJZBnHkHm5NnbrhQtVTRDfNKKnOoYjNRZZZ8zQktz7eysk+/ 6JijXrq5VvJMbXA4F1DCsVjT/+tqbkw2le44wWKoLppBFNQreW3lmlZDi7i0fNmwZj2d 1SbigSHkeoots49CuF8pn7MU4xdGaDhBE15Gx5iqKSJebF5M6M6RNB3N3JYHXG4kGBPD 3fvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=+KpNao5DG7AgBe+XvT6M4EMyYgz3pagE9PCUtC/M5Qs=; b=X6OYrHoGIOJl+hhnWhgEBpkwlOzmy6J/ykvQe/QkkKiKMLu2Jg1QvM/78+DaFdcCkj aq9iwnqLXy0B6Sjzo7qJm6wMV2nzr3UI+7Lo+WZg+km+Bve6qFNykadvYc/J5qrX3OAp lJXDfIkejGy3ZVfFP7K5d5S7QJ/i0BsTL5XpFpafrwoqy8Po6NWzwmuVT7IsKSrbwT2B +/+7V+xykSgPdyjmIF6muLAPufxApb80WIQ1YXH2R+DsSjTkoLSeyfEcshjWzmHlAVLT x3CBlPNKPHUHsUPNwP64aXV9ciXfLearjmKW+7fBRPh3OPq1JIBu37HSjMcsCKhDntLL xSyg== X-Gm-Message-State: ACgBeo2jXep3beGd//bdQ0iLrIoowuKuf9naj9zNuDxElGwwUdzRjwkv 6gHf3ldW1ei0qRs2BxQVIbc= X-Received: by 2002:a17:90b:1e11:b0:1f4:ee94:6236 with SMTP id pg17-20020a17090b1e1100b001f4ee946236mr12181849pjb.63.1659416024243; Mon, 01 Aug 2022 21:53:44 -0700 (PDT) Received: from localhost.localdomain ([103.184.239.49]) by smtp.gmail.com with ESMTPSA id b5-20020a170902d50500b0016be24e3668sm10619133plg.291.2022.08.01.21.53.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 21:53:43 -0700 (PDT) From: Sebin Sebastian Cc: mailmesebin00@gmail.com, Igor Mitsyanko , Sergey Matyukevich , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH -next] qtnfmac: remove braces around single statement blocks Date: Tue, 2 Aug 2022 10:22:39 +0530 Message-Id: <20220802045305.235684-1-mailmesebin00@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 --- 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