Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7485745pxb; Thu, 18 Feb 2021 11:16:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2E5qiqN3XL7LkwQMb1BI+d2g70GbOh9gnzSwu+wS1o7xmaWlPEUG3/i8Fc8hrIaqN3Ct/ X-Received: by 2002:a05:6402:1641:: with SMTP id s1mr5657202edx.272.1613675799787; Thu, 18 Feb 2021 11:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613675799; cv=none; d=google.com; s=arc-20160816; b=SdNWr94s3zLaIZGDwl5fAnzSy/d08T6shBlA839DFCeACKqGA0wvHOPv3RNpJayEA9 8vApjO2CMJE7aIyVN/z2SyiZj6W46DA/q1YVCZZ5+NUBx7FFRF9gQ1jn/VA6YyCjwYqV tR0JF9VRt9cTBi/oKqyhefA383f/j5Mi88dFzeTc/wG8/6hCFPqIvTo1FMWU+juGF2JW E1H7Qr/hW8mt9CoayWGZwi5r/saa2YdUCJu11NlQPz6Zt5U6zBEGJJCigi5jUr5o04ZH K5aB0GOAPUR6iDUTqvTKHZLiSw2mHeFK3ZiKoU7lYw4ZRv2KmQJVhVjMbWh09Mj/0/zV EWMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UxN/RS5Cg3/G8IT5ie9550Ke2+pdpLBa43GYr79Isz8=; b=lowYoJBMo22lCX24eg0LT8V3kyiM1o1BBpPq1t9h01FdrepkVuHV9saBQdMyAbbZ8d xg7iJRTSD89ttc0vhYqsAKk93HpyxUdaqFVVEBYirMAb6HzY9Tb6gw8UgjNA+pq3GiIw If/MqvdeMyDAL5HOX9rEwYDcM8G+KYtgbExjqqGGe/GP5+4aOrm/Y0Zj+3/6p/87XACH ZgzUEFvzUnud+K0qNgoCQcYXLMniD2jY6vK1NCfo3RHa0PjJ0sG4bWR/zC/pOGeFtGYm nhAxN2XBmFPLv5EfkANKm2tgSXc2sImIAqMZz+oz5jVc5QtcA6SRW1Mry8QxRaQz4BSy 8nFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LeZ9kdbY; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si4034447ejy.284.2021.02.18.11.16.06; Thu, 18 Feb 2021 11:16:39 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=LeZ9kdbY; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233796AbhBRTMu (ORCPT + 99 others); Thu, 18 Feb 2021 14:12:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:49392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234643AbhBRRr1 (ORCPT ); Thu, 18 Feb 2021 12:47:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5EB8964EAF; Thu, 18 Feb 2021 17:46:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613670402; bh=mtEHrh0qdtrNn6hE2o602oWOXfVcY2W1TdTnBunJ7hU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LeZ9kdbYYPw5EWOtcB7ZZh8OTTcpSZoGLaWQbAYY8ZDok6MzMj9B11f31/lKWotHD dvBtM7tVPnGvO4XExf0a/zRRkRVR61PHlujG+Lt8X+VUASKjCY3d1XCTTwWBQO0UUi 8b37i3wXuOLdJJhxq92K36oDqmcTP51xzSKXU4Yc= Date: Thu, 18 Feb 2021 18:46:39 +0100 From: Greg KH To: Kurt Manucredo Cc: ross.schm.dev@gmail.com, straube.linux@gmail.com, dan.carpenter@oracle.com, d.straghkov@ispras.ru, tiwai@suse.de, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Staging: rtl8723bs: code-style fix Message-ID: References: <20210218163204.7-1-fuzzybritches@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210218163204.7-1-fuzzybritches@protonmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 18, 2021 at 04:33:10PM +0000, Kurt Manucredo wrote: > Signed-off-by: Kurt Manucredo > --- > > Checkpatch complains the constant needs to be on the right side of the > comparison. The preferred way is: > > drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c > index 089c6ec19373..96feced698ac 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c > +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c > @@ -2146,7 +2146,7 @@ void rtw_get_sec_iv(struct adapter *padapter, u8 *pcur_dot11txpn, u8 *StaAddr) > struct security_priv *psecpriv = &padapter->securitypriv; > > memset(pcur_dot11txpn, 0, 8); > - if (StaAddr == NULL) > + if (!StaAddr) > return; > psta = rtw_get_stainfo(&padapter->stapriv, StaAddr); > DBG_871X("%s(): StaAddr: %02x %02x %02x %02x %02x %02x\n", > -- > 2.20.1 > > > _______________________________________________ > devel mailing list > devel@linuxdriverproject.org > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change. - You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot