From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yHnKl5LN7zDq5f for ; Thu, 19 Oct 2017 22:50:03 +1100 (AEDT) Subject: Re: [PATCH 3/5] powerpc-pseries: Delete an unnecessary variable initialisation in iommu_pseries_alloc_group() To: =?UTF-8?Q?Michal_Such=c3=a1nek?= , linuxppc-dev@lists.ozlabs.org Cc: Alex Williamson , Alexey Kardashevskiy , Andrew Morton , Bart Van Assche , Benjamin Herrenschmidt , David Gibson , Doug Ledford , Greg Kroah-Hartman , Johan Hovold , Masahiro Yamada , Michael Ellerman , Nathan Fontenot , Paul Mackerras , Rob Herring , Sahil Mehta , Tyrel Datwyler , kernel-janitors@vger.kernel.org, LKML References: <0d221be4-1402-0499-d95e-afa4a30e1f33@users.sourceforge.net> <9c71e3e0-8998-fd02-e3a3-ef219d82ee32@users.sourceforge.net> <20171019133718.5bdab33c@kitsune.suse.cz> From: SF Markus Elfring Message-ID: Date: Thu, 19 Oct 2017 13:49:17 +0200 MIME-Version: 1.0 In-Reply-To: <20171019133718.5bdab33c@kitsune.suse.cz> Content-Type: text/plain; charset=utf-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> 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