Skip to contentSkip to conversation

iommu/ipmmu-vmsa: remove unnecessary oom message

PATCH New Zhen Lei 1 participant 1 message Jun 9, 2021 IOMMU

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

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.

---
 drivers/iommu/ipmmu-vmsa.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/iommu/ipmmu-vmsa.c +1 -3
index 51ea6f00db2f..d31e3890f5e2 100644
@@ -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