Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp795698ybi; Sat, 15 Jun 2019 11:55:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwev3YGppDZ8MmpBlQYWyn9lp19MLXrhTb8a3y0nGaX5Ce6Vsn5rWsLg+UtQKcw3F9QgCuH X-Received: by 2002:a17:902:42d:: with SMTP id 42mr95295068ple.228.1560624943809; Sat, 15 Jun 2019 11:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560624943; cv=none; d=google.com; s=arc-20160816; b=Bsiiai9UsVpsElBs01jKha9Iz4DRU8DnOe5VmHfCkZqp0KDTwMwVTRr40xgu9BEMro NZ+xeunzIJJzktLMCWz96EdQSot4clhxBP0S643TjN3mRuPay0ncxiSwphYfeWuZo2uv EFRz/3GahLYaWq+JKhIZyZTJvupFYcPSmPSWnCwDkn5x0htBf/wKm0ZQVS/juU4qmyXw vEK1tpCjrda6bcZuL5cITDLz20kjHJcMHIUFbx2BJ2+wbHK2M06azmfuHo35ij4lPXll wYmpz0sI0eZH4PePY6oxmBIU1bsiPVCNbdnNwd906DS8HOwn+kS/Rhy7w2mpiRvThK5e m60A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zFhwtteP6ND4aBdRHZG6gNWzzVVjww+hfuqsC6zjvk4=; b=o8IxyD6AeCTLfYDWQnXWjZbinjinsZ4T02fqhFnTj8PZVx7AnkEhs90iXMSq7lqyay lJ6imwRiLFRClVsK/2RNCPuplHzwRQ69nKNqdeL9YzMhEhcO/DB+gI+6EPllt0HCfU83 QEBWuNN/hsY6IBBCmrxH+dnyXFF8S122jYCVuP+xrZEIj21ETdowMPlJShk08VapRYkw w2QRSt57g86pc/Azvjaa/1J5dSFIsLxMLatlx1I/rWoGT3y9X7JoMFwYW5DAhFPaueH4 L3iBPC4DGPQMrLimXjT08C7A0bFInr19ZhWkFEkidp2mYg9Pm/rrFl8N/FAgpuBvNgUt UXqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kLaCWFUe; 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 y6si6408697pgg.386.2019.06.15.11.55.29; Sat, 15 Jun 2019 11:55:43 -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=@kernel.org header.s=default header.b=kLaCWFUe; 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 S1726891AbfFOSx7 (ORCPT + 99 others); Sat, 15 Jun 2019 14:53:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:41456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfFOSx7 (ORCPT ); Sat, 15 Jun 2019 14:53:59 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 142E821841; Sat, 15 Jun 2019 18:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560624838; bh=PcNtMWJn1JC5fgNG7jD7XI0Lo4/bd+UCSCuIEWqVjbM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kLaCWFUewcyRCIJaZeKgiA89Ir7na/WTr5gYF7cCS9SsWNUtwBlW3j4vqUBWUcqOX iDAQGdG2/INYUg2aQCa7BeIYmBgrVzgL5z27LZdpNdtZQDTsNNx0ugjJBi7n5ivXzP dwBQqv9NKcqKQdLuNpKpz8ER6TxXvcPBYXw7wD34= Date: Sat, 15 Jun 2019 20:53:55 +0200 From: Greg Kroah-Hartman To: Shobhit Kukreti Cc: Bastien Nocera , Hans de Goede , Larry Finger , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8723bs: Resolve checkpatch error "that open brace { should be on the previous line" in the rtl8723bs driver Message-ID: <20190615185355.GC10201@kroah.com> References: <20190614021206.GA895@t-1000> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190614021206.GA895@t-1000> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 13, 2019 at 07:12:10PM -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" > > drivers/staging/rtl8723bs/os_dep/mlme_linux.c > drivers/staging/rtl8723bs/os_dep/recv_linux.c > drivers/staging/rtl8723bs/os_dep/rtw_proc.c > drivers/staging/rtl8723bs/os_dep/sdio_intf.c > drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c > > Signed-off-by: Shobhit Kukreti > --- > drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 14 ++--- > drivers/staging/rtl8723bs/os_dep/recv_linux.c | 76 ++++++++--------------- > drivers/staging/rtl8723bs/os_dep/rtw_proc.c | 6 +- > drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 15 ++--- > drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c | 24 +++---- > 5 files changed, 47 insertions(+), 88 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/os_dep/mlme_linux.c b/drivers/staging/rtl8723bs/os_dep/mlme_linux.c > index aa2499f..6799ed4 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 > @@ -77,8 +76,8 @@ void rtw_reset_securitypriv(struct adapter *adapter) > > spin_lock_bh(&adapter->security_key_mutex); > > - if (adapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X)/* 802.1x */ > - { > + if (adapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) { /* 802.1x */ > + > /* Added by Albert 2009/02/18 */ > /* We have to backup the PMK information for WiFi PMK Caching test item. */ > /* */ > @@ -106,8 +105,8 @@ void rtw_reset_securitypriv(struct adapter *adapter) > adapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled; > > } > - else /* reset values in securitypriv */ > - { > + else { /* reset values in securitypriv */ > + Trailing whitespace? The comment should be on a new line, not on the same line. thanks, greg k-h