Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp164492ybi; Fri, 14 Jun 2019 21:38:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSWDK5tKTpHQNJQOJX5lIF+HUnZrf97Bgm41lTXFEtc2zorSZq7xlN6VZ6l9fp+Qg06N73 X-Received: by 2002:a63:4104:: with SMTP id o4mr40081737pga.345.1560573529949; Fri, 14 Jun 2019 21:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560573529; cv=none; d=google.com; s=arc-20160816; b=lUm8TTmVkDv86wTNgwCC+FFhA7UHtJzYl/t5x3sw/rugBxgiTnayS4iAmTQ4af/eT2 8T1NffHL5utb7ELKuoaAbArXbTdn5wO2HrABSGxmC2Mp/f1J0ByubuVDmtt9CpaND+S3 bG/y4gEvrV9Vg9LgNonGln3VafKLbjdYbhQh87uDbX2dKNtgmvjwei0GI0Qpd8SE3Ofs 6kOLaM3d8PTcmtjM2L7OUVpMpby9WPazunLz1pq2qc9F6bB/fTvaR1+fIRCnXUDSpfMR TzHSIyGDZg4m0/kd2x9k/+2NkwausQLHhCcovFHRCwAXLolKzIeCBSfsDh+JxnJ85uLn 0kaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=q2r6AD+gcy9pQMyOS5hD54vNjbTsuyd4RCExb0fM2pY=; b=s7gGwu3vvY6+c51GtYZY/DsB0eGl9GMr2Vaptrwk6NILMi+b/lbfaXzl2SGXrHsVkI JVxE9LNP69MfBwblC72/owc3EfBRAbyw9l9BDk8K1+M6HUHHrskgCAJG6u9v897mkrhg Xfg42DnmWtAd+zrAYo0bm8lZ6eUrFfMgrCMxvHwQotzWU8OPD5/2/HTNgcj5NmzJUjU2 RLJJTk1G/OszvTHcO9/e70GnP5gffE7sY0rLeukn8e4ay4hoGF9/hiPhYSju1QnpZJYw nABo4xfiseQLg87/2eExbTqiSHZKDrLnOM0+k4x9K+TE1ITlWy+H0JlTGC9boiDI4z67 qugQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CTqzxIcQ; 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 f59si3893805plb.107.2019.06.14.21.38.34; Fri, 14 Jun 2019 21:38:49 -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=CTqzxIcQ; 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 S1726366AbfFOEhC (ORCPT + 99 others); Sat, 15 Jun 2019 00:37:02 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33042 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbfFOEhC (ORCPT ); Sat, 15 Jun 2019 00:37:02 -0400 Received: by mail-pg1-f196.google.com with SMTP id k187so2665230pga.0 for ; Fri, 14 Jun 2019 21:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=q2r6AD+gcy9pQMyOS5hD54vNjbTsuyd4RCExb0fM2pY=; b=CTqzxIcQNSQePrhTuYqnWRyrJ3m7Y/n/1ylOQ3QfTCb0/ah4nKQiLgbJ213qp5K/dk CxPqQtEhgs6WJsuqkXI5BYZuNcfQbyOp5dFrpMjLFlCO+vwX6uahNpSPaal1KEnH06KP 03/2CllAoAnh9p66fCzCDDqBpYXkrWfMo6EYl5sSBRsBO8CBK6VOVmp05nrBEmwkAfsl WzUie4JQkZk8m3XYUpivkojVwfV7bJOjcbxWVmQ9SsQww/thllTsK9esN/kgnxUf0Wd4 +QU1THQRcU2odjYFrIgoj3gEfAS27Sax4NtO+bVdnqsSp8iBvAXI8yrPhmTnEkFwyBL+ /s4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=q2r6AD+gcy9pQMyOS5hD54vNjbTsuyd4RCExb0fM2pY=; b=IbYQgI/vTFeG5OlNEiMZ+keVhB0tzPauOSHe7BtfZjnbbk2Adrh8eyfRIjIEU2faNx qZopWUiiDx4YabAZmB/UAbsjBGCi1J5UJX5uiP0bXhk71pCqEeSz34vCSmvrv9Ib3RVb Q+pKUlPgHP+nRrEecWu8AwSM7ls+s9haf/+135peqRVZbNMpwYyRdhVlQVCgId+mDP08 kxQhdPp0QTCcSLqEeeFltGDqP2BgPizT+fHXd3w1sqg8JapmFtD3jBrMdcg1nw267gZk sWD3FBf3UBP/Rk/62ndach8Vd3DG6f7Do0u2KjvxibQCZKDmNgyQZ6+oHgdiggahLFZ7 pzLQ== X-Gm-Message-State: APjAAAV3atTwLPvmpXskoxFv6IJ6uArdJU3eXPq46ls9tgq/gfQzKZK5 UrXs4iI2o1s30WfgDNyv4qA= X-Received: by 2002:a17:90a:de0e:: with SMTP id m14mr14514409pjv.36.1560573421918; Fri, 14 Jun 2019 21:37:01 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id g19sm4918933pgb.26.2019.06.14.21.36.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jun 2019 21:37:01 -0700 (PDT) Date: Sat, 15 Jun 2019 10:06:57 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , Himadri Pandya , YueHaibing , Arnd Bergmann , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] staging: rtl8723bs: hal: spaces preferred around unary operator Message-ID: <20190615043657.GA12626@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below issues reported by checkpatch CHECK: spaces preferred around that '-' (ctx:VxV) CHECK: spaces preferred around that '/' (ctx:VxV) Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c b/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c index 215335c..b44e902 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c @@ -284,7 +284,7 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv txlen = txdesc_size + rtw_wlan_pkt_size(pxmitframe); if( !pxmitbuf || ((_RND(pxmitbuf->len, 8) + txlen) > max_xmit_len) || - (k >= (rtw_hal_sdio_max_txoqt_free_space(padapter)-1)) + (k >= (rtw_hal_sdio_max_txoqt_free_space(padapter) - 1)) ) { if (pxmitbuf) { /* pxmitbuf->priv_data will be NULL, and will crash here */ @@ -355,8 +355,8 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv rtw_count_tx_stats(padapter, pxmitframe, pxmitframe->attrib.last_txcmdsz); txlen = txdesc_size + pxmitframe->attrib.last_txcmdsz; - pxmitframe->pg_num = (txlen + 127)/128; - pxmitbuf->pg_num += (txlen + 127)/128; + pxmitframe->pg_num = (txlen + 127) / 128; + pxmitbuf->pg_num += (txlen + 127) / 128; /* if (k != 1) */ /* ((struct xmit_frame*)pxmitbuf->priv_data)->pg_num += pxmitframe->pg_num; */ pxmitbuf->ptail += _RND(txlen, 8); /* round to 8 bytes alignment */ @@ -522,7 +522,7 @@ s32 rtl8723bs_mgnt_xmit( rtl8723b_update_txdesc(pmgntframe, pmgntframe->buf_addr); pxmitbuf->len = txdesc_size + pattrib->last_txcmdsz; - pxmitbuf->pg_num = (pxmitbuf->len + 127)/128; /* 128 is tx page size */ + pxmitbuf->pg_num = (pxmitbuf->len + 127) / 128; /* 128 is tx page size */ pxmitbuf->ptail = pmgntframe->buf_addr + pxmitbuf->len; pxmitbuf->ff_hwaddr = rtw_get_ff_hwaddr(pmgntframe); -- 2.7.4