Skip to content

Commit c076d74

Browse files
krzknmenon
authored andcommitted
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>
1 parent 168d2fb commit c076d74

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/soc/ti/knav_dma.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,10 +716,8 @@ static int knav_dma_probe(struct platform_device *pdev)
716716

717717
kdev = devm_kzalloc(dev,
718718
sizeof(struct knav_dma_pool_device), GFP_KERNEL);
719-
if (!kdev) {
720-
dev_err(dev, "could not allocate driver mem\n");
719+
if (!kdev)
721720
return -ENOMEM;
722-
}
723721

724722
kdev->dev = dev;
725723
INIT_LIST_HEAD(&kdev->list);

0 commit comments

Comments
 (0)