Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3352359pxb; Mon, 4 Apr 2022 14:23:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIgTqw+dFhamQ1Amjks7icIaGPbhtid7kI1mMYatMwT9vfZoU5FuMbFLbXQzukNuPdbv8s X-Received: by 2002:a17:90b:4f44:b0:1c7:9f03:9b2d with SMTP id pj4-20020a17090b4f4400b001c79f039b2dmr288957pjb.24.1649107404453; Mon, 04 Apr 2022 14:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649107404; cv=none; d=google.com; s=arc-20160816; b=BzB8k2RGVXy7gfj6gnnEbO+zdtmPc6BmGJy+BvkTwsaDzlYIiL5/BDlv/bix5k7CK9 5jf1S4KDQOqAPNG3SjmfxBVMOnzyqMVcs4wRi5HANYVx/YdLBgTiAUPKdvkciwVqSLe4 kIkO0UqXzj6lp5S+tn7xcWfMTvcwagLwy5zRrPBlknie9R5Odko0xc/lX9u1aG+hTgJV NP1rH4PydBGIgzul71NoslcfxgsDLksX1/a4USMyGXkiFKU60ufuqJjPCigKLKkkDnrP T1T95Fmj+dLpllyaf0wm1KDtuiiuCG7Tzct8owMyi1YWH2z2KSR9udoYC6yB6Cwi1si+ KZpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aHudlMOg6jYguBQ34zTnQT806trua03XNCZ7WUQx1wE=; b=oF//Rxc5TzVt5PbHSic2WU9Yxo+3TWXZDdCJofL+WN1EFYFU7Urpz4qJeu36q2Z8O7 yLLA1fOj2C+tNVoEfiFDySH3+eh7iAo3bGWcJyFfneHHiLLLyQTKMWjvjtWT+HszZ22l XZko+OB51mIHc7VN5M8kIQR5DsYKZOnSajQAGkxXlikbv8QXbTlJruuwyll0K7KVY4rg 88lmJotzWmKWaR/Luhl8QPMHujoy/bagJ4S2skCqr1kHLfJTlh0BgS3/H0mO35eY3jp1 qPfJQ+xU23pbZ+EGQygfjNV5l1gZIxXsRIUV1gCkEW4hYPOhxp9B4W3Bn7grxl9LynO0 pb9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZfACbjdX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 mz1-20020a17090b378100b001c7c83e5730si113331pjb.51.2022.04.04.14.23.09; Mon, 04 Apr 2022 14:23:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=pass header.i=@gmail.com header.s=20210112 header.b=ZfACbjdX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351594AbiDATan (ORCPT + 99 others); Fri, 1 Apr 2022 15:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236520AbiDATam (ORCPT ); Fri, 1 Apr 2022 15:30:42 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6157F34BA0 for ; Fri, 1 Apr 2022 12:28:48 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id v15so2916574qkg.8 for ; Fri, 01 Apr 2022 12:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aHudlMOg6jYguBQ34zTnQT806trua03XNCZ7WUQx1wE=; b=ZfACbjdXfGyVT3TF7t51D8Rpm/gB4pRB+G8lva/IEekE65/lmPgPh4+V0I20mVexv+ z/AmRY3n2uyuf4NAce/eDYNs/LcyG2KK2gduukJE4aKndOt6bx95U6hTp9qU9Ku6lDtP felAYSzkxqvaIGkKS5cqeJJwvIamfWJD0aPBKzvXzmOnOIrggtgPx/iEQCVOHRBzTyMQ PY4OyOrcYJWrGhuwZnDzvI80BZsVQaeQnvpOVzqFOmAgXVqeKP5MugOB0VMvj16NH2AM 4kmbNGnXiV3lFMJc3ArrfzQ3Ok3iU22CUS3TMN2r83bnaTdf5eip++FiGPoUzRJmwKSe sTGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aHudlMOg6jYguBQ34zTnQT806trua03XNCZ7WUQx1wE=; b=EYNSI0BGDwK6hwITd07JCRZuD5F2Lo9JxM6Ou2lxYkBBWLATC7NVE8dHnzrBX+UzPG qXy0+daHvDk2Uiz7YytPjh33CbQlQU7t9lh+1VOLk4DwW3nGtYsuIQesKzDBTbpJrvj1 dSPIWSwaTm05JaLghkVNVNjni5hgvXJgO8MuNEJM5uNxIAI/7aeY9HtPW+zD9D4A4ICa J75eGxBYutvLbb2GsvPSzL3GMDLb5r9Vn6nlcfXWEYNi+G2zfVlEdq++qx+Wd0aG/7aF UeahGHEvyZXP85Srx6BiaWoxR5NgdVmt3kDHs4t2ZudHHBlFIeIFFVeMCsoUTbeMmyX5 lLgw== X-Gm-Message-State: AOAM531Z8fl6Af0E1ey1KdM4G0mKZYPnTA5fddxIpyPyU4CCwCk/Bjpn 2NENwlc5t9ZJFwsSWvd+iS0R5eU7N3vEwhtR X-Received: by 2002:a05:620a:484:b0:67e:16fe:3689 with SMTP id 4-20020a05620a048400b0067e16fe3689mr7332513qkr.745.1648841327493; Fri, 01 Apr 2022 12:28:47 -0700 (PDT) Received: from euclid ([71.58.109.160]) by smtp.gmail.com with ESMTPSA id b21-20020a05620a04f500b0067b4895472esm1792938qkh.5.2022.04.01.12.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Apr 2022 12:28:46 -0700 (PDT) From: Sevinj Aghayeva To: Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev, Sevinj Aghayeva Subject: [PATCH v3 0/3] rlt8723bs cleanup Date: Fri, 1 Apr 2022 15:28:35 -0400 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches fix three categories of checkpatch warnings (redundant braces, redundant else branches after return/break, and constant placements on tests) in file rtw_mlme_ext.c, which is part of the rtl8723bs driver. False positives, such as if (foo) { /* TODO: ... */ } were not altered. --- v1 -> v2: Removing a redundant else branch left a variable declaration mixed with code, which was caught by the kernel test bot. Move the declaration to the beginning of a function. v3 -> v2: Include correct files in the patchset. --- Sevinj Aghayeva (3): staging: rtl8723bs: remove redundant braces in if statements staging: rtl8723bs: place constants on the right side of tests staging: rtl8723bs: remove redundant else branches drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 167 ++++++++---------- 1 file changed, 70 insertions(+), 97 deletions(-) -- 2.25.1