Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1437529yba; Sun, 5 May 2019 06:24:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDKux3HMP6sh4MQYgiPG8MXRbHQEZiUutb2JP9f+mnan2gsCH6zXIJxac4ZC3aIGqhp6D1 X-Received: by 2002:a62:5b81:: with SMTP id p123mr2659506pfb.158.1557062666056; Sun, 05 May 2019 06:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557062666; cv=none; d=google.com; s=arc-20160816; b=gssQgEmgHqaayT5WForR31AMk3M9yJMZCuyoxFf/C70/wHPKq9eh/MYZP9ozQpNlWw YUODqoKzfzygTTqcBGcXHEhRNOgAGDUe8ILGAZ8Yd3HXNa+xdS9OQ7n/LRJRNmSr3WGc bidfKU0IvP+5IfgN+ZESPCUP7r5fXMD7e+f8h4GEPQcFKrI+xcOptTq+sH3cEp6n1eQz qQvrhnneNZMEjiMGPVrDL6u+HFGHLrvMgNIWKYcoMfj8QXQVXzlaoSPnH+61db0x9W77 od9sBREfXcBBhvNj4syjm1TkhrmH4Wg13sKBWN5K+C9MRAw0A6W2hos4LN4LIFn7Xpey 504A== 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=/W24gNruPHDgOof9DmBWprRyBOAOlA2d0gs0W79Nqlk=; b=0TvBWhMRRJj1427U52toeuuTWaf3YVn92layelmZfYSqCghyS6TWMHdpwBNZg9gbz5 rn2KPCQoJJGsITVtMBb7whThPMq30W6DiJ7Z1rdnmc8/An1dLgczZyr3FApFl841/bI7 YRJ9EFXP0PeKry0AjRCgYVBohig6+Wpy9B9AefTp1A0LtiOID2L6WI9OaMGlk/Fdq/IM LMhwlKBnKDp5xi+d+B2ZmxxphtjNzrwItEsEIEB9K43lGDDXBVTVNll7kS7x1rB5aly2 XLANT2xNsOrxcGm9hX1n6tmsn9pw8x+rp4BCApkRZVs8/waXKiZk4wd9f1QI3a+T04NX NT0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QMrWHacv; 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 y4si11421439plb.283.2019.05.05.06.24.11; Sun, 05 May 2019 06:24:26 -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=QMrWHacv; 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 S1727769AbfEENVw (ORCPT + 99 others); Sun, 5 May 2019 09:21:52 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46802 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbfEENVw (ORCPT ); Sun, 5 May 2019 09:21:52 -0400 Received: by mail-pg1-f195.google.com with SMTP id t187so964060pgb.13 for ; Sun, 05 May 2019 06:21:51 -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=/W24gNruPHDgOof9DmBWprRyBOAOlA2d0gs0W79Nqlk=; b=QMrWHacvhJvQJcbuJTgltiNCAtynYyJRiAeF3TDpt1cxYig3Y409qQ4JZ3tvgUkB3o vztrdxmPgtpszJuuFKhIsU9hKN+ekGks88GhfICI+6l7mclzDpEu3+5bAlh3m3e2ycuu jIm9hHJBVEvraqlMb9QYUSSgmVo/kFmqtgcXIYH4zbyw9WOibxL95NTwnYTFkjITkLYy 9DSem1mxGl7geSqVRxcz4l6KVcV/R2/m2vSLnM+N+szAV+8553G1cwoMQmXzD4sPFx8P XkeTQydXycW5LGARiUx4z6nsIpuhi8rrDNwKw7OyDWiYeJY291EzB6NDXRloWE9y2equ 3/JQ== 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=/W24gNruPHDgOof9DmBWprRyBOAOlA2d0gs0W79Nqlk=; b=dxf4bg49+7E1Y7bXQ93h5+23b/q6AOXBbbrl+igg7Sm77kW6k9u0n3d1F6DuIhy5S8 JpiIsUeo0aKZTbSEtqPwP9ydnbiEZJrcXhmXsqB35OMrAYNJK9M9/W68YGJVM0q+oHOP Bq74NEbZOJJaW6uNiaX0rLdVrIfD1X3JvGoRoP7itPHZ4i2OVPEWHxlnKXi3OtioHIu7 g90tUbFXtCzjLuzwf9PTaWo58sLtylxnORw8FUzVMlYlX2tlu2aaZzD2OrDWpwYnXNpt uCbqjkLrA4V0SyESKMN3iu2lFY3ND+SWc94J38mg9ZO0CdgaHT9UZa96WEcF9HmHfWD/ sp+Q== X-Gm-Message-State: APjAAAX/p1IU82XFVdKJZmI5rxJ70ydKIAIY3LqXH+Bc+zc1zmnqPWTZ nwhXt5j9PGpxdb5UP8vdMWY= X-Received: by 2002:aa7:8e04:: with SMTP id c4mr25596656pfr.48.1557062511524; Sun, 05 May 2019 06:21:51 -0700 (PDT) Received: from localhost.localdomain ([103.87.56.229]) by smtp.gmail.com with ESMTPSA id m11sm10599223pgd.12.2019.05.05.06.21.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 May 2019 06:21:51 -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 v2 4/6] staging: rtl8723bs: core: Remove braces from single if statement. Date: Sun, 5 May 2019 18:51:31 +0530 Message-Id: <20190505132131.4404-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 1cf6229a538b..a8ceaa9f8718 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); @@ -6431,9 +6428,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