Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4727188pxy; Tue, 27 Apr 2021 11:11:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycGr6BfIpcmollmDo5emR5KUz8okoubNMuB8C09il2ockeCR5xkshnlPmnnq1txHdPgSWW X-Received: by 2002:a05:6402:5113:: with SMTP id m19mr6142060edd.78.1619547096889; Tue, 27 Apr 2021 11:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619547096; cv=none; d=google.com; s=arc-20160816; b=jJnx3kC++AGA3JpR9SoXiSEcq4d4LtfUH13dR5M6cX0au2K/NPbqkZS/Iac78jjojX s/G34yup/WA2GKnzFkY+f95IarTIaDJQqo0qtX5BTqB2EHH0ThVqvSI+sQvP3GpVn6JU 4sMSOm4C1yMi77bXw6r+sekuhjkBgGZa0HYn/7Dof74wjV/p5aIc8DuQfr595yxbLUm/ px4CZUEl/nHojPUzNRnTM0MYLwqZqd47jtW/cGYGjMjSocbDlxKKYYoDdsTKM2vp2td6 qsc44QZK6keUrEzjpJNCEt2GLbtgHjHZQ4H9JAkIzH4daQb2Z0aefC+DtDAdKKY/upnn bQ5w== 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=vm30l6NI2z2FfVuxHf0i2Ien0Ve0vDd4OXOAuoqgIDQ=; b=fYgxZb5VptgJJLu53GV6v/5ubXF28sOtXpGG3SAUJSubRhOZdXNaj02xpVN/9HiHb3 J5eYCCY/9xkHlvQQgBzNVIRxPP6Asp58N20siyC1bPBX67P9CnHFawGkkVduNQPAMOfK Z0TMwQwm/Aq/gFTl6WQL6RKVNL0yHFJBI1s0dyZtPlqw6Ko1O+CNWW/99bBu7NUP6CXx /eyTRvsnYnFd9NEe7bAfnJ6aKGT+p+dw6N6puPkjxW1zPcNXj9hkuUXCBwGW/KVd73P1 /MFM1CXFGxwDIDThg6cKb6FBEXkfX0EoYtDinmho7v3HMWu13lNOHs/rYmrQPr7ivkux Fdvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g1kyynzT; 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 v20si520192eju.632.2021.04.27.11.11.12; Tue, 27 Apr 2021 11:11:36 -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=@linuxfoundation.org header.s=korg header.b=g1kyynzT; 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 S236571AbhD0SKa (ORCPT + 99 others); Tue, 27 Apr 2021 14:10:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:37264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235505AbhD0SK3 (ORCPT ); Tue, 27 Apr 2021 14:10:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D4E760FDC; Tue, 27 Apr 2021 18:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619546986; bh=A2/WCFmcB4YcVkQg4351PRfU64Y/d3EZ0rzxaDaOmVQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g1kyynzTD4aEdm5ElfOvPoljDveCa8L1RwNsZrCaxZZoRPnZDfm1nzuLAmg48B7Sa b8LE1n4QgiEa8A5R/O/nr6d8fN4jMPcTDpqFfqfio64TthpbT99chvKYSoMyWGpmuE DvqEGHNIguGE98rDbL/Abc822aF6wyGmJ303c4FA= Date: Tue, 27 Apr 2021 20:09:43 +0200 From: Greg Kroah-Hartman To: Sergio Paracuellos Cc: Iain Craig , Matthias Brugger , linux-staging@lists.linux.dev, linux-kernel Subject: Re: [PATCH] staging: mt7621-pci: fix a multiple assignment code style issue Message-ID: References: <20210427174719.GA14124@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 07:55:30PM +0200, Sergio Paracuellos wrote: > Hi Iain. > > On Tue, Apr 27, 2021 at 7:47 PM Iain Craig wrote: > > > > avoid multiple assignments while setting pcie->io members to NULL. > > > > Signed-off-by: Iain Craig > > --- > > drivers/staging/mt7621-pci/pci-mt7621.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c > > index 115250115f10..f3b5b8ac03b5 100644 > > --- a/drivers/staging/mt7621-pci/pci-mt7621.c > > +++ b/drivers/staging/mt7621-pci/pci-mt7621.c > > @@ -306,7 +306,9 @@ static int mt7621_pci_parse_request_of_pci_ranges(struct pci_host_bridge *host) > > * resource manually instead. > > */ > > pcie->io.name = node->full_name; > > - pcie->io.parent = pcie->io.child = pcie->io.sibling = NULL; > > + pcie->io.parent = NULL; > > + pcie->io.child = NULL; > > + pcie->io.sibling = NULL; > > In this particular case I think the original code is correct as it is. > Also this is the style used around different kernel places to assign > these fields. THe original is fine. thanks, greg k-h