Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1274319ybi; Sun, 16 Jun 2019 01:14:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0QktKVbqTtUZOliBBEAfsFpOaHzbEhYdTMlyBddCD2/1XPhWCHEny9f2GEbj89E9xDyqM X-Received: by 2002:a17:90a:d3c3:: with SMTP id d3mr20396347pjw.17.1560672841833; Sun, 16 Jun 2019 01:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560672841; cv=none; d=google.com; s=arc-20160816; b=E/3g/ODbuKiAoVCzPxKbmVNMFjVtA1uDnOKpSf2dXjZcUxizSdV56EkXPMY814CaR4 eYLcMoClWSOfVfH0ymrDTyTSRZjJSF9Ea18uXo1iqSUCG2WglF1c/mJOe/jb/W9YqGr9 JIK+klo/TxbxDldXyxGHdmT0qYz+28NHS9oT7Hl1b18yEfEMWW22dsEEmQBgzx5NB1mL G+ikyaABlk5rWoBYiJ0oipXmBsYKHnHwBaKJvBbodZQNh3n1oHEXzGcmf1CFfoYuvfiy sNTm2Yb1uk6rCMlTnFQLs6547weK7b9hRk02ySvXKyhP21HOppHofpqE1wTlHQ+FaSkM ZIsA== 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=bvnK2tqy2haJcuGqTeaFnI//IgKpOgWJs1ma6AqgihQ=; b=b/RjuoTvSKM347Y6TB18HK6eSyObV5HADgJoLp1ljUkgZ5VhxZTmw7N9bKxc4gtHkG lijzr5El2DlQS9Lmt+zN9JNMcPpeB0bUfhetDBUojkbb80xvLhBj7xghs5612IW4pVWc P+cVbGmKx1g52kLK4Lx3LplTLA6iMz3DdmFYB3pzSXdEoRLCpP2+JADQBWchSxbB/n4u MZU11RMAgRaqVmrTiOIFP9JuI3T13rwpxtaMxsi+Y/tqyL9A+49loq20Mi3TBmbrGeb/ 9WfC594UDKGYXmVIhlktIr0D7gmQlHen97Jf7cePMVG1Mf5Me1zIIzrZvnMr9GswGTny ZICQ== 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 m18si6796293pjv.101.2019.06.16.01.13.19; Sun, 16 Jun 2019 01:14:01 -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 S1725990AbfFPINQ (ORCPT + 99 others); Sun, 16 Jun 2019 04:13:16 -0400 Received: from smtprelay0077.hostedemail.com ([216.40.44.77]:45099 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725865AbfFPINQ (ORCPT ); Sun, 16 Jun 2019 04:13:16 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 43DCC181D3368; Sun, 16 Jun 2019 08:13:15 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3873:3874:4321:5007:10004:10400:10471:10848:11026:11232:11473:11657:11658:11914:12043:12296:12438:12555:12740:12760:12895:13069:13161:13229:13255:13311:13357:13439:14096:14097:14659:14721:21080:21627:30012:30054:30070:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.14.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: print89_735c9b2327048 X-Filterd-Recvd-Size: 2424 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf14.hostedemail.com (Postfix) with ESMTPA; Sun, 16 Jun 2019 08:13:12 +0000 (UTC) Message-ID: <1d668acbce4cc9759cc940f56016dc9437df5441.camel@perches.com> Subject: Re: [PATCH v2] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723 driver From: Joe Perches To: Shobhit Kukreti , Greg Kroah-Hartman Cc: Bastien Nocera , Hans de Goede , Larry Finger , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Sun, 16 Jun 2019 01:13:11 -0700 In-Reply-To: <1560634159-9015-1-git-send-email-shobhitkukreti@gmail.com> References: <20190615185355.GC10201@kroah.com> <1560634159-9015-1-git-send-email-shobhitkukreti@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 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 Sat, 2019-06-15 at 14:29 -0700, Shobhit Kukreti wrote: > Cleaned up the code from the following files to get rid of > check patch error "that open brace { should be on the previous line" It's fine you are modifying brace styles, but: > diff --git a/drivers/staging/rtl8723bs/os_dep/mlme_linux.c b/drivers/staging/rtl8723bs/os_dep/mlme_linux.c > index aa2499f..4631b68 100644 > --- a/drivers/staging/rtl8723bs/os_dep/mlme_linux.c > +++ b/drivers/staging/rtl8723bs/os_dep/mlme_linux.c > @@ -46,8 +46,7 @@ void rtw_os_indicate_connect(struct adapter *adapter) > struct mlme_priv *pmlmepriv = &(adapter->mlmepriv); > > if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) || > - (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) > - { > + (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) { > rtw_cfg80211_ibss_indicate_connect(adapter); > } > else the else should be on the same line as the close brace > @@ -106,8 +105,9 @@ void rtw_reset_securitypriv(struct adapter *adapter) > adapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled; > > } > - else /* reset values in securitypriv */ > - { > + else { > + /* reset values in securitypriv */ > + and here. etc. Please change all instances appropriately.