mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
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>
This commit is contained in:
parent
168d2fb780
commit
c076d74383
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user