Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1180810ybt; Wed, 1 Jul 2020 21:55:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjkrNgU9H6Lv7xbKNdEohuBloaADCoO+opVjiqp3Q2bGe14XexTkw7D/SdHPezlrnbu4tv X-Received: by 2002:a50:d78f:: with SMTP id w15mr34071191edi.245.1593665756738; Wed, 01 Jul 2020 21:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593665756; cv=none; d=google.com; s=arc-20160816; b=u3Dil8KklS7bJhjitsvOfQv16+NzlHZ5vxHi9ZOLIBrejj8rK5OGmARlJp8MoUrQ+4 UnITwxdly8hFp5oWIg502neR5dUmSBiP37Lo5h22ue+5gjVEtaGBx4Wv2rZ9ns62jm3R pdiDVljHk0gqezgVsxvSO5d2eiU9tzVyxXeV8d7wriMfNnvfZU9xn2fDuxoXnhasK4ND Uwc314n7T2q66spWaa2MBte5brGHE1UoWrkaI/ufI5wrvUJXelXUSNPL9eXOyuOEjyvy xBULT+ZWEUrsmfMQoaFY4I+8VHrQm0DmHNO/Q7z5uIDjek4CtgLOEKzjTRber0/MHDZ0 8tVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uEiRLNKt69M+Lip9AktsDp/u6gg05rPhzB8bmhjA7A4=; b=jtKOhPbTlMQ9Yuj1Q1qphr24xIpyiKbQoWmGTWruvBbX60kysD4C90kb8md1iJjGL4 GnXUV4TNCHp0O6yoDERgpj/ShQkc6M/rxRe6avpv9t08/A4iVr7Kx9IHWgl8PoYwj3kq +12ubdn2irECquZ4f1bXuJ1OWADLdlV33g/k0zL3WtZ6piqIxS65WxP34uKkzTj+VrKO tC/UWQkUF2YrPLuE2B/un78+a9NR/MXRnLC1yyNKTvm7DSiBQgHQaF3LiR/Qlwkp5fu1 P/p5nVJzrTNgWTImyWFbpNa+YwqvpXt3RadfY0B02LulHbfWSERjrsjami04wMaZtsAM oMkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ExH6F2q4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y33si5959833edy.206.2020.07.01.21.55.33; Wed, 01 Jul 2020 21:55:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ExH6F2q4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726273AbgGBEwn (ORCPT + 99 others); Thu, 2 Jul 2020 00:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgGBEwk (ORCPT ); Thu, 2 Jul 2020 00:52:40 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39EEAC08C5C1 for ; Wed, 1 Jul 2020 21:52:40 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id b16so11965720pfi.13 for ; Wed, 01 Jul 2020 21:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=uEiRLNKt69M+Lip9AktsDp/u6gg05rPhzB8bmhjA7A4=; b=ExH6F2q454wJ41b2BXCt/7X7WIXluk6VAKALxUU5tFpTjbkOtGbsmX0+nPyTZocMem KjpQl2U7z7K/EeOzS3tSvLYOOrNwXHoNTkgtXuyjrCQPNV2A/Ebi8bTfIusaFV5ni/S2 n6rgbnQpdQuBcz11zE7y4VCx9wa6m4S48uvGs= 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uEiRLNKt69M+Lip9AktsDp/u6gg05rPhzB8bmhjA7A4=; b=i4mPa+iBBamLv67aef+w8VjB40/YvFWEjVKVPY0EKn5XppewZWv3dANk2A8/EneXbm QXxq3stwf02ETKlPbpvQVduuGn89GhHmcK8m3mCerPF5N9MThjF4xJ51n9Z9RG7vXWsO eqoNWKYEOiFhq/8a1vztPZ/19JiPrrKH62+Dl3b8Jvt7hCs4NKnSpoJ0qFROAKQaemSw jh0eU5aexOu2ciciQjVwYGgSIa2K+fhodtq0dzvjfdsEHBRCrHQgKyfrvjy28KFCbSyZ upTA0JAe7mbORVF5KueERemmaxa4fiRRxhreiOmvBR3frbT4pEO/vd7ktlXSznyq0gx8 EkkQ== X-Gm-Message-State: AOAM531xnby3bn3aM+UFawlOrI9egneydFmxJdEBh905WPdJA5pw+zu1 M8PBju3yZbVcb3GRnkeFlAc7Ww== X-Received: by 2002:a65:6415:: with SMTP id a21mr22407549pgv.129.1593665559676; Wed, 01 Jul 2020 21:52:39 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id c132sm6912538pfb.112.2020.07.01.21.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 21:52:38 -0700 (PDT) Date: Wed, 1 Jul 2020 21:52:37 -0700 From: Kees Cook To: B K Karthik Cc: Larry Finger , Greg Kroah-Hartman , Michael Straube , Dan Carpenter , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8188eu: include: rtl8188e_xmit.h: fixed multiple blank space coding style issues Message-ID: <202007012152.4F5B41C14@keescook> References: <20200702044842.fbafuffk7zercbi7@pesu-pes-edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702044842.fbafuffk7zercbi7@pesu-pes-edu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 02, 2020 at 12:48:42AM -0400, B K Karthik wrote: > added blank spaces to improve code readability. > > Signed-off-by: B K Karthik > --- > drivers/staging/rtl8188eu/include/rtl8188e_xmit.h | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/rtl8188eu/include/rtl8188e_xmit.h b/drivers/staging/rtl8188eu/include/rtl8188e_xmit.h > index 49884cceb349..c115007d883d 100644 > --- a/drivers/staging/rtl8188eu/include/rtl8188e_xmit.h > +++ b/drivers/staging/rtl8188eu/include/rtl8188e_xmit.h > @@ -30,11 +30,11 @@ > #define SET_EARLYMODE_LEN2_1(__pAddr, __Value) \ > SET_BITS_TO_LE_4BYTE(__pAddr, 28, 4, __Value) > #define SET_EARLYMODE_LEN2_2(__pAddr, __Value) \ > - SET_BITS_TO_LE_4BYTE(__pAddr+4, 0, 8, __Value) > + SET_BITS_TO_LE_4BYTE(__pAdd r +4, 0, 8, __Value) ^ did this get compile tested? :) -Kees > #define SET_EARLYMODE_LEN3(__pAddr, __Value) \ > - SET_BITS_TO_LE_4BYTE(__pAddr+4, 8, 12, __Value) > + SET_BITS_TO_LE_4BYTE(__pAddr + 4, 8, 12, __Value) > #define SET_EARLYMODE_LEN4(__pAddr, __Value) \ > - SET_BITS_TO_LE_4BYTE(__pAddr+4, 20, 12, __Value) > + SET_BITS_TO_LE_4BYTE(__pAddr + 4, 20, 12, __Value) > > /* */ > /* defined for TX DESC Operation */ > @@ -100,7 +100,7 @@ enum TXDESC_SC { > > #define txdesc_set_ccx_sw_88e(txdesc, value) \ > do { \ > - ((struct txdesc_88e *)(txdesc))->sw1 = (((value)>>8) & 0x0f); \ > + ((struct txdesc_88e *)(txdesc))->sw1 = (((value) >> 8) & 0x0f); \ > ((struct txdesc_88e *)(txdesc))->sw0 = ((value) & 0xff); \ > } while (0) > > @@ -138,9 +138,9 @@ struct txrpt_ccx_88e { > u8 sw0; > }; > > -#define txrpt_ccx_sw_88e(txrpt_ccx) ((txrpt_ccx)->sw0 + ((txrpt_ccx)->sw1<<8)) > +#define txrpt_ccx_sw_88e(txrpt_ccx) ((txrpt_ccx)->sw0 + ((txrpt_ccx)->sw1 << 8)) > #define txrpt_ccx_qtime_88e(txrpt_ccx) \ > - ((txrpt_ccx)->ccx_qtime0+((txrpt_ccx)->ccx_qtime1<<8)) > + ((txrpt_ccx)->ccx_qtime0+((txrpt_ccx)->ccx_qtime1 << 8)) > > void rtl8188e_fill_fake_txdesc(struct adapter *padapter, u8 *pDesc, > u32 BufferLen, u8 IsPsPoll, u8 IsBTQosNull); > -- > 2.20.1 > -- Kees Cook