Re: [PATCH] iommu/fsl-pamu: Fix uninitialized variable warning

From: Christoph Hellwig
Date: Thu Apr 15 2021 - 11:07:11 EST


On Thu, Apr 15, 2021 at 04:44:42PM +0200, Joerg Roedel wrote:
> From: Joerg Roedel <jroedel@xxxxxxx>
>
> The variable 'i' in the function update_liodn_stash() is not
> initialized and only used in a debug printk(). So it has no
> meaning at all, remove it.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>

Sorry for introducing this. The fix looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>