Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp376338ybk; Fri, 15 May 2020 03:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgYqfjkwBhm5kExYBrG+ON685tU3aVwVArzbrhX53Bi3VJaLG4S4uIBh+8DXm5umK79Ctk X-Received: by 2002:a50:d785:: with SMTP id w5mr1943143edi.212.1589537214982; Fri, 15 May 2020 03:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589537214; cv=none; d=google.com; s=arc-20160816; b=McuOgUO0ghaG5Tx9V5Hjd5mS+oLSo8Ozb4jm9aawueRDwOjIi2trdJomuGmOz0p6ud WJkT5JNSJDin8yzvw2iXUwRmsXvcXEPYW7+aD+PT5d1xy2XwoFGY+XrcG288+V0441XM sSDMYaXu19vHykThmco5cq/AEWg6Kkfi1U7yaGA83NzVdRnnbz6jwA960w1Smk8JWCxI VAnGxitCuNUEVB/QiErimtBSZPDEahUifH8/5BU+aqfAI6830YZbG6AwPFP3ktuaGBaL vB4whLu6uXX6FLjOjRgmQGnkfEx58Wyb0IR86l4O3B4a6TVR70Ct9csU5/zWLFuXSLW7 BWsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=z2B39HWGnGt+Y0ROBs+foQKXr5dBn5IGR/bWBTvj9hU=; b=vETGRTjDLTtksY6JLmksGSEOdc7ck6sgyAoJDRUZMdm4t6wswHSztKHN44Nnt+bZFx Sm/Am9e3C8VD16JKzJda7uvniSpzZIGImwe4I03ytyqf4hwDNgCjf3hAt45uzKh+0PDv m8DNqxnFBWzIrFfzUTL45qEC0PoNsD/cT04uUY738KLjyOfM7wUXA0yMXsfeBK3sHeSm 4nLXTnaZHTPmA5x1iy55TCeEgKbNjS0yhfRjZiuMPLkZpst4GLR5dQN260UZwAXHEZ13 3m9qIbuY2q48J3YbLwuiyaUSu6EDXawM2W/qk4eU+vwJTxtfoAwNA2dXQm7G3UtbCVx6 OkAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1GhbEZ3d; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i27si909017ejb.63.2020.05.15.03.06.31; Fri, 15 May 2020 03:06:54 -0700 (PDT) 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=@kernel.org header.s=default header.b=1GhbEZ3d; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728073AbgEOKFI (ORCPT + 99 others); Fri, 15 May 2020 06:05:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:55968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbgEOKFI (ORCPT ); Fri, 15 May 2020 06:05:08 -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 62B69206F1; Fri, 15 May 2020 10:05:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589537107; bh=yf/Bcnv7O6skIG8X503CVl+4UYSemnxT3mdUADsqf+k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1GhbEZ3d0a3dHufS6XzHsCXiHUvI0b5g6OyB49Az5W7tvoM6SosxiScjVanKbanXk wBygtkr7yJGgqB8CfyZCpG2AB9bHAOx+wCkW6o8XemJoZFbPjUNPybxsfukjHacpoX hC9uv7MZtEGlnXw6BV5bz6ewkJ1UQ+3BP+zKZid8= Date: Fri, 15 May 2020 12:05:05 +0200 From: Greg KH To: heshuai1 Cc: vkor@vkten.in, nishkadg.linux@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, heshuai1 Subject: Re: [PATCH] rtl8723bs: core: fix a coding style error Message-ID: <20200515100505.GA1619720@kroah.com> References: <1589535644-6820-1-git-send-email-heshuai1@xiaomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1589535644-6820-1-git-send-email-heshuai1@xiaomi.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 05:40:44PM +0800, heshuai1 wrote: > Fix this coding style error reported by checkpatch.pl: > ERROR: do not use assignment in if condition > #1120: FILE: drivers/staging/rtl8723bs/core/rtw_ieee80211.c:1120:: > + if ((addr = of_get_property(np, "local-mac-address", &len)) && > > Signed-off-by: heshuai1 > --- > drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c > index ca98274..06be1d4 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c > +++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c > @@ -1117,8 +1117,8 @@ void rtw_macaddr_cfg(struct device *dev, u8 *mac_addr) > } > > if (is_broadcast_ether_addr(mac) || is_zero_ether_addr(mac)) { > - if ((addr = of_get_property(np, "local-mac-address", &len)) && > - len == ETH_ALEN) { > + addr = of_get_property(np, "local-mac-address", &len); > + if (addr && len == ETH_ALEN) { > ether_addr_copy(mac_addr, addr); > } else { > eth_random_addr(mac_addr); > -- > 2.7.4 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 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. - It looks like you did not use your "real" name for the patch on either the Signed-off-by: line, or the From: line (both of which have to match). Please read the kernel file, Documentation/SubmittingPatches for how to do this correctly. 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