summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>2026-01-02 13:47:31 +0100
committerNishanth Menon <nm@ti.com>2026-01-05 12:40:12 -0600
commitc076d74383f1ce2c8db4c83c40c714c8751d5d01 (patch)
tree7083c549e9c3bc97225bd80604241f9045d2d9c4 /drivers/soc
parent168d2fb7805510aba3b0871414ec93c2364f9e23 (diff)
soc: ti: knav_dma: Remove ENOMEM printks
Printing messages on ENOMEM errors is redundant and discouraged, because core already prints detailed report. Simplify the code by dropping such dev_err(). Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260102124729.63964-7-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/ti/knav_dma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/ti/knav_dma.c b/drivers/soc/ti/knav_dma.c
index 553ae7ee20f1..93365bac2631 100644
--- a/drivers/soc/ti/knav_dma.c
+++ b/drivers/soc/ti/knav_dma.c
@@ -716,10 +716,8 @@ static int knav_dma_probe(struct platform_device *pdev)
kdev = devm_kzalloc(dev,
sizeof(struct knav_dma_pool_device), GFP_KERNEL);
- if (!kdev) {
- dev_err(dev, "could not allocate driver mem\n");
+ if (!kdev)
return -ENOMEM;
- }
kdev->dev = dev;
INIT_LIST_HEAD(&kdev->list);