iommu/ipmmu-vmsa: remove unnecessary oom message
PATCH 1/1 iommu/ipmmu-vmsa: remove unnecessary oom message
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 <[email protected]>
--- drivers/iommu/ipmmu-vmsa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/iommu/ipmmu-vmsa.c +1 -3
@@ -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);
Signature · 7 lines
2.25.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu