]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soc: ti: knav_dma: Remove ENOMEM printks
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Fri, 2 Jan 2026 12:47:31 +0000 (13:47 +0100)
committerNishanth Menon <nm@ti.com>
Mon, 5 Jan 2026 18:40:12 +0000 (12:40 -0600)
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>
drivers/soc/ti/knav_dma.c

index 553ae7ee20f166d2ccd9a4f41c29ca112516e024..93365bac2631a6b3c5ec367e6bfaf7e06bae7491 100644 (file)
@@ -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);