Fixes scripts/checkpatch.pl warning: WARNING: Possible unnecessary 'out of memory' message
Remove it can help us save a bit of memory. Signed-off-by: Zhen Lei <thunder.leiz...@huawei.com> --- drivers/iommu/ipmmu-vmsa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 51ea6f00db2f..d31e3890f5e2 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c @@ -992,10 +992,8 @@ static int ipmmu_probe(struct platform_device *pdev) int ret; mmu = devm_kzalloc(&pdev->dev, sizeof(*mmu), GFP_KERNEL); - if (!mmu) { - dev_err(&pdev->dev, "cannot allocate device data\n"); + if (!mmu) return -ENOMEM; - } mmu->dev = &pdev->dev; spin_lock_init(&mmu->lock); -- 2.25.1 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu