Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1798871ybh; Sun, 8 Mar 2020 13:21:44 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuSI4G/HwwMMo15KymreDANIrI+XjIetlPWJjtSU1Xgiw7sUVxefj2Dr41sGCx0DrZHyEtD X-Received: by 2002:aca:ab16:: with SMTP id u22mr1353680oie.133.1583698904282; Sun, 08 Mar 2020 13:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583698904; cv=none; d=google.com; s=arc-20160816; b=ibzWBw5T19PIExoEMdj18CpWuNmMva8VKV5bS/zkGWTUFVXggv5GEV4aoMdHUgismr 9olEnBV223/7t/U2WdSjBCwryTGzuPGxpclM8Iy7Egg0QAeCglNf9l9u+fMC0SYaNAJ1 QG6mXt1h2p+yoQF9aRMRlJjm3sZr/EAs7CKEnHoEgD0ImAZtmqjeIkL3osK4/EieUZfn 8hqQiKSEbXfmTs8nRkCbmYs2HYI4B2/RjegWoPoVSx5S9sqQAXI/9wWAB6xM79SnK+cS TStrPsST4kWlEXqaON/P7XGYx/y8zyJC0nWaOStWkzJba5KOj+CH+UR8FWJD6ENrSyEn OvMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=07TOcy+3i1OOabBCwDAEVTNF5oaN70iRw7k8osHvmTg=; b=S0LA32yuNQnCAOWbX7pTzsbRaBrmZb94CaGvw5VScB1rQgkX0kxy3j6kStilO2LUZu CUo9aILErHRi66QAAIGSGGAstTFOcjJVr2Q8yQbpAtiQh5kjudRe9El8C1Zj+OYCL/F8 cmnzpomdHxpKAoNGQteTM7k5uwuZjkSi4m8Mf2fasSTYfCjCtFG4hivvRDSupjPZ/KqA YaGGad/G/YnFdPfvocd7FKvElIoA1r39HmGazRnCBfqMty6b/LTFELGNxC2kgGuzwoNU RulyZZ0nw2DCt03Rz3VaMY5DJKQDvqP3BeLVZp18EDmsI8TzQhnKhVHegxoJWm9Em8bL f83A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c140si2860596oib.195.2020.03.08.13.21.32; Sun, 08 Mar 2020 13:21:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726363AbgCHUVK (ORCPT + 99 others); Sun, 8 Mar 2020 16:21:10 -0400 Received: from smtprelay0228.hostedemail.com ([216.40.44.228]:51307 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726340AbgCHUVJ (ORCPT ); Sun, 8 Mar 2020 16:21:09 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 675C9182CED2A; Sun, 8 Mar 2020 20:21:08 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2197:2199:2393:2559:2562:2693:2828:2895:3138:3139:3140:3141:3142:3354:3622:3865:3866:3868:3870:3871:3872:3874:4321:4605:5007:6119:7903:10004:10400:10848:11026:11232:11473:11657:11658:11914:12043:12296:12297:12438:12740:12760:12895:13071:13439:14093:14096:14097:14180:14659:14721:21060:21080:21221:21611:21627:21740:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: lift73_7e1d8c9f8d338 X-Filterd-Recvd-Size: 3514 Received: from XPS-9350.home (unknown [47.151.143.254]) (Authenticated sender: joe@perches.com) by omf17.hostedemail.com (Postfix) with ESMTPA; Sun, 8 Mar 2020 20:21:06 +0000 (UTC) Message-ID: Subject: Re: [Outreachy kernel] [PATCH] Staging: rtl8188eu: Add space around operator From: Joe Perches To: Shreeya Patel , Julia Lawall Cc: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com, sbrivio@redhat.com, daniel.baluta@gmail.com, nramas@linux.microsoft.com, hverkuil@xs4all.nl Date: Sun, 08 Mar 2020 13:19:27 -0700 In-Reply-To: <465a7cfe822438a8edd32d3a5120bd565797ca4d.camel@gmail.com> References: <20200308192152.26403-1-shreeya.patel23498@gmail.com> <5a28241e8c3b11cbfe1776caadcb799cd9e39ee4.camel@perches.com> <465a7cfe822438a8edd32d3a5120bd565797ca4d.camel@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-03-09 at 01:40 +0530, Shreeya Patel wrote: > On Sun, 2020-03-08 at 12:59 -0700, Joe Perches wrote: > Hi Joe, Hello. [] > > > > diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c > > > > b/drivers/staging/rtl8188eu/core/rtw_mlme.c > > [] > > > > @@ -924,7 +924,7 @@ static void rtw_joinbss_update_network(struct > > > > adapter *padapter, struct wlan_net > > > > /* update fw_state will clr _FW_UNDER_LINKING here indirectly > > > > */ > > > > switch (pnetwork->network.InfrastructureMode) { > > > > case Ndis802_11Infrastructure: > > > > - if (pmlmepriv->fw_state&WIFI_UNDER_WPS) > > > > + if (pmlmepriv->fw_state & WIFI_UNDER_WPS) > > > > pmlmepriv->fw_state = > > > > WIFI_STATION_STATE|WIFI_UNDER_WPS; > > > > Like adding spaces around the | here too. > > > I thought of doing this but then it was introducing another warning of > "Line over 80 charachters" that is why I didn't proceed with it. [] > What is your suggestion over it? Should I let the line be over 80 > characters and add spaces around the operators? Just ignore the long line warnings, there are many already existing long lines in that subsystem. That should be a style challenge for a later time. $ git ls-files drivers/staging/rtl8188eu | \ xargs awk '{ print length($0); }' | \ sort | uniq -c | sort -rn -k2 1 187 1 180 1 171 1 166 1 163 1 159 1 158 2 157 1 153 2 151 1 146 1 145 1 144 1 143 1 142 2 141 1 140 1 139 1 137 1 135 5 134 6 132 3 131 3 130 6 129 3 128 6 127 6 126 3 125 3 124 5 123 4 122 8 121 6 120 4 119 7 118 10 117 11 116 9 115 5 114 11 113 13 112 8 111 17 110 25 109 24 108 14 107 20 106 19 105 34 104 19 103 26 102 22 101 22 100 25 99 20 98 23 97 33 96 32 95 43 94 40 93 49 92 47 91 51 90 48 89 55 88 50 87 37 86 48 85 57 84 45 83 61 82 61 81