[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c5905c07-6127-685d-98b0-5c2bbeabe5ea@users.sourceforge.net>
Date: Thu, 19 Oct 2017 13:49:17 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Michal Suchánek <msuchanek@...e.de>,
linuxppc-dev@...ts.ozlabs.org
Cc: Alex Williamson <alex.williamson@...hat.com>,
Alexey Kardashevskiy <aik@...abs.ru>,
Andrew Morton <akpm@...ux-foundation.org>,
Bart Van Assche <bart.vanassche@...disk.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
David Gibson <david@...son.dropbear.id.au>,
Doug Ledford <dledford@...hat.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Johan Hovold <johan@...nel.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Michael Ellerman <mpe@...erman.id.au>,
Nathan Fontenot <nfont@...ux.vnet.ibm.com>,
Paul Mackerras <paulus@...ba.org>,
Rob Herring <robh@...nel.org>,
Sahil Mehta <sahilmehta17@...il.com>,
Tyrel Datwyler <tyreld@...ux.vnet.ibm.com>,
kernel-janitors@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/5] powerpc-pseries: Delete an unnecessary variable
initialisation in iommu_pseries_alloc_group()
>> static struct iommu_table_group *iommu_pseries_alloc_group(int node)
>> {
>> - struct iommu_table_group *table_group = NULL;
>> + struct iommu_table_group *table_group;
>> struct iommu_table *tbl = NULL;
>> struct iommu_table_group_link *tgl = NULL;
>>
>
> I think initializing pointers to NULL is generally a good idea.
This one would also not be needed if the call of the function “kzalloc_node”
could be specified in the same statement.
> Removing these initializers adds no value, to the contrary.
This small update step is just a “preparation” for the subsequent two suggestions
in this patch series.
Regards,
Markus
Powered by blists - more mailing lists