From: Christoph Hellwig Date: Thu, 14 Feb 2019 07:26:58 +0000 Subject: Re: [PATCH -next] swiotlb: drop pointless static qualifier in swiotlb_dma_supported() Message-Id: <20190214072658.GA10416@lst.de> List-Id: References: <20190214014147.108653-1-yuehaibing@huawei.com> In-Reply-To: <20190214014147.108653-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: YueHaibing Cc: Konrad Rzeszutek Wilk , Christoph Hellwig , Marek Szyprowski , Robin Murphy , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org On Thu, Feb 14, 2019 at 01:41:47AM +0000, YueHaibing wrote: > There is no need to have the 'struct dentry *d_swiotlb_usage' variable > static since new value always be assigned before use it. FYI, this is in swiotlb_create_debugfs, not swiotlb_dma_supported.