Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7516590pxb; Thu, 18 Feb 2021 12:10:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcpsmRnO4S4k6sY4aNQmWJ/n8DGNClXrY4v4Js9e/qnuPEuE5/Z4S6oVdRNP8WVP0Pi6ym X-Received: by 2002:a17:906:6087:: with SMTP id t7mr5791575ejj.90.1613679005912; Thu, 18 Feb 2021 12:10:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613679005; cv=none; d=google.com; s=arc-20160816; b=V0DC28bwSZHGw9xySZOIecQhNVW8LvQq0GmgccfKP6EQprDhyjPX9NzfEnpUpyxypo MT2cPPwXl2flfxZqFFmC9qfcAzo//L5rTcwL9UZLW1tJ0YTCooT6kR5d5XyiCgMVW7vx cX1Gyx2q8iyQLZRJCPs+/sc5jvdYEtm7uflZKGdgZdbevac6ai7tGaMvSs2Wy3Y8ZuGO Q4cZHES+IFS8LvwYaKB4yi+P7DSZmEX8CR+pemDi7b9Vk0aRorckyFwnSJYEPat1QiC/ DgLHEtuzMTHXFiskqaDAP4klJqvJQYmnsgUZnP11qX6EFok4RPBl26/r69w3ezLzwA+2 YRmg== 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=G7ZhxUvQplOLgaO+5cAvpiLjvvcKb2ffXpykn3iP9Ow=; b=UzovBamhCaeIgCNWcDGHhws+dIE9jFGRQqioz0bW5ajpBRrQ7TLUToY3SZh3B60nHo 4eUR19H/DjiEblpHiH0YLQz6dltoKZgs+x9UMnVd4XLFhTUbmE5MYYRY4CMa00QbKDW4 yl0PeXiXx7rR0APhGF+n+3beNwtcRLrCa5+hEf2oo4nMgCxKmH5hKOYHAkSffCaYFVU4 fJ3UtAL3wZTZE56fYZbPtn+Xo0vzvuR4bhVgiA3XpNRO+ti11Bn+ebfXKA3udCzrNAda TUDs0+6AS9BO4sYghLV8w3nYEGQxMtSU/3SvvT5mXQYPUOLeJ54aQHE7opyVuLuAE/Yy qahw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=THyuM6tW; 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 i92si2963906edd.583.2021.02.18.12.09.42; Thu, 18 Feb 2021 12:10:05 -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=THyuM6tW; 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 S232345AbhBRUGZ (ORCPT + 99 others); Thu, 18 Feb 2021 15:06:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:39290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbhBRUB6 (ORCPT ); Thu, 18 Feb 2021 15:01:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F04A64E0F; Thu, 18 Feb 2021 20:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613678477; bh=YpiNWgj10muyFSIVWtLBH3ek2+9i0lLrltUVkeVhijc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=THyuM6tWBXsTn/YMwUu8/RTbUJoAElGHPxooCeoJcm7FLz6ofitLsSt6DLBvffLlL nfSyFV+u6w/vXx2HjeKrRFz9AWJqnlm+hWPQjG84yhY4zq7JA0cZgH9t6WUPQg8gXj RdACxhTxLxeK6qlaf4L2nN6jpLdElmRYrrUWXzo0= Date: Thu, 18 Feb 2021 21:01:13 +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: make if-statement checkpatch.pl conform Message-ID: References: <20210218194830.8-1-fuzzybritches@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210218194830.8-1-fuzzybritches@protonmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 18, 2021 at 07:50:27PM +0000, Kurt Manucredo wrote: > Signed-off-by: Kurt Manucredo > --- > > The preferred coding style is: > if (!StaAddr) > return; > > thank you mr. dan carpenter > > 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 975f2830e29e..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 (NULL == StaAddr) > + 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. - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this. 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