Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp746494yba; Sat, 4 May 2019 11:51:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqywpnZugDqT3G7ztD9mhi2eBXIwKKXxyrdyF2GDQ9TiJs7y7cNKZ3zOzz0UK3wghZDR1YAF X-Received: by 2002:a62:be13:: with SMTP id l19mr21801213pff.137.1556995888662; Sat, 04 May 2019 11:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556995888; cv=none; d=google.com; s=arc-20160816; b=Tp2Z47ip5X12vq6lHwnUjBEsNLJwC10KCF362P/59wZWtP47pV86BpUInyk5jzeUyN C5wY4yN7AqUeZ+eIXMjVWvu0Ebt15OOuy18GndDct7bXBx6rKfGvqOVwNjWPIbX1a5zo yZsGHqHioGzsQnJG6/gZ8EYxDpSTQpB3uMhsRZLnXRQ/kesaWp6PzePL1TdW4SZs+fxH n0JyuACMQLB/PKYZ0SgIEL0u/qwuyJWWJziFdJaBTf6+YvGx6JBXX1lIl+5VB27CZJaV MTjb26Bj+UGWfzOBNUdPER8X1/A3LKj415ih6IFd6LgqBFXdlizxUx0PhZMp70ZKFLR3 72MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=hmTYC1IMrcB9vVn4blmFDPwB368HGffmno6HFyxlFBg=; b=yksN+hlCERWTRC6B9+cN0QZI+LSsMz9TCA785S88jBQ0wa2jqi5izzL23XCWY9UOBf Oh3jAeo1BJr3iUX73PSsbfPmzGjvT0VHUzC3ODsSmRe/ri7Lttm+OM3HkAlV9ol8lQ2v XdQK6yKMkUyVmepuULElKxvZdqEBvX+oxdSNjCT8wVEswlbb+bFTJZk+VmbmeBM+bPle qWQAKzU9nTimZGR/yP0Un5QHw6pSLs66DDtQdKVnoktpwtyy4O4IodhhDEahFsFkdL7G kcWX9djQ9C1v9GRqAZ0s3tPvwefEarHj2TBM9cgrfMFhbaQek1GyRGFpLkeBfi37K+Za II3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fEOewwgJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s79si8515950pfa.69.2019.05.04.11.51.12; Sat, 04 May 2019 11:51:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fEOewwgJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727474AbfEDSsZ (ORCPT + 99 others); Sat, 4 May 2019 14:48:25 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40368 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbfEDSsZ (ORCPT ); Sat, 4 May 2019 14:48:25 -0400 Received: by mail-pg1-f196.google.com with SMTP id d31so4358453pgl.7 for ; Sat, 04 May 2019 11:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=hmTYC1IMrcB9vVn4blmFDPwB368HGffmno6HFyxlFBg=; b=fEOewwgJy+by43IHCWkxFNXTyAXP6B+iuW6YwAxyWS626ZgBu8vHqedCtgcTSKyE9k Nj87dgstydB/6jy/ZnDqoqx/qru5iV5NYsqqTSdKlIIfuHErQrIEB8pXQlonnvgn6bLC auxEli5EQ+5/4sdwjAZ+GUVBuB2H4c+aMZZdCH5dgjHsD+hOMA5jWQBmZCMj7xKTv0wS NKPtcxlBd1BPjTgZKKHeYf1Q6mf3UCMmhrCkFT+Yf5xknyk3OjGAFPju4vSerHDCiXgY Ge67kwXXx2TTnbj72/vzGXlELFhEYex7ulPSqwFJD765CIf6NThdJp0Am2FTlD2FJNl3 eWwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hmTYC1IMrcB9vVn4blmFDPwB368HGffmno6HFyxlFBg=; b=KTKBXKbdEmVJV+iBhtDTnH5xZWpFyk7PhQVQrgp7O1bm64JuZsyxUbIPi/PHq37tSy mUioSYKky6kJn+FHw8comzzNCSt3AwED3BwEewtVVI5J5nhoD3uszA1vIft9zC9aPxGY dMKo+FEC2BNSLUNXsitsA2fBXPIsyU0vnTCK17fYsHfEVmkF2dym+s8MzqsRgpWFyIJw OTErUn5PUPAmPBMBQW6GETaevhneR4tvoagehfhlzDm/rC4ICj4LaeB9LORCJkl/hyjd QLyWlpOBQZ+0HHhIWFO8RGGjQJ3eV2qSVOizGTt2On1yFNB6oObADI7pn//OcYfm7xOq F8yw== X-Gm-Message-State: APjAAAXqWTHQ9sYoei1bw2VsUO6z9tRZZZjcBixWgM5rh+z+HDheh7jN t9C1MwRIAjS6MdXYCsEDbAc= X-Received: by 2002:a65:4183:: with SMTP id a3mr20477551pgq.121.1556995704305; Sat, 04 May 2019 11:48:24 -0700 (PDT) Received: from localhost.localdomain ([103.87.57.241]) by smtp.gmail.com with ESMTPSA id m16sm9550571pfi.29.2019.05.04.11.48.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 11:48:23 -0700 (PDT) From: Vatsala Narang To: gregkh@linuxfoundation.org Cc: hadess@hadess.net, hdegoede@redhat.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr, Vatsala Narang Subject: [PATCH 5/7] staging: rtl8723bs: core: Remove braces from single if statement. Date: Sun, 5 May 2019 00:18:01 +0530 Message-Id: <20190504184801.26056-1-vatsalanarang@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove braces from single if statement to get rid of checkpatch warning. Signed-off-by: Vatsala Narang --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 60079532bddd..6f0205c9504b 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -370,9 +370,8 @@ static void init_channel_list(struct adapter *padapter, RT_CHANNEL_INFO *channel struct p2p_reg_class *reg = NULL; for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) { - if (!has_channel(channel_set, chanset_size, ch)) { + if (!has_channel(channel_set, chanset_size, ch)) continue; - } if ((0 == padapter->registrypriv.ht_enable) && (8 == o->inc)) continue; @@ -1950,9 +1949,8 @@ unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_fra category = frame_body[0]; if (category == RTW_WLAN_CATEGORY_BACK) {/* representing Block Ack */ - if (!pmlmeinfo->HT_enable) { + if (!pmlmeinfo->HT_enable) return _SUCCESS; - } action = frame_body[1]; DBG_871X("%s, action =%d\n", __func__, action); @@ -2397,9 +2395,8 @@ s32 dump_mgntframe_and_wait_ack(struct adapter *padapter, struct xmit_frame *pmg pxmitpriv->ack_tx = true; pxmitpriv->seq_no = seq_no++; pmgntframe->ack_report = 1; - if (rtw_hal_mgnt_xmit(padapter, pmgntframe) == _SUCCESS) { + if (rtw_hal_mgnt_xmit(padapter, pmgntframe) == _SUCCESS) ret = rtw_ack_tx_wait(pxmitpriv, timeout_ms); - } pxmitpriv->ack_tx = false; mutex_unlock(&pxmitpriv->ack_tx_mutex); @@ -6421,9 +6418,8 @@ u8 setauth_hdl(struct adapter *padapter, unsigned char *pbuf) struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); - if (pparm->mode < 4) { + if (pparm->mode < 4) pmlmeinfo->auth_algo = pparm->mode; - } return H2C_SUCCESS; } -- 2.17.1