Skip to content

Commit 168d2fb

Browse files
krzknmenon
authored andcommitted
soc: ti: knav_qmss: 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-6-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent fdce161 commit 168d2fb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/soc/ti/knav_qmss_queue.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,6 @@ static int knav_queue_setup_regions(struct knav_device *kdev,
10911091
region = devm_kzalloc(dev, sizeof(*region), GFP_KERNEL);
10921092
if (!region) {
10931093
of_node_put(child);
1094-
dev_err(dev, "out of memory allocating region\n");
10951094
return -ENOMEM;
10961095
}
10971096

@@ -1409,7 +1408,6 @@ static int knav_queue_init_qmgrs(struct knav_device *kdev,
14091408
qmgr = devm_kzalloc(dev, sizeof(*qmgr), GFP_KERNEL);
14101409
if (!qmgr) {
14111410
of_node_put(child);
1412-
dev_err(dev, "out of memory allocating qmgr\n");
14131411
return -ENOMEM;
14141412
}
14151413

@@ -1509,7 +1507,6 @@ static int knav_queue_init_pdsps(struct knav_device *kdev,
15091507
pdsp = devm_kzalloc(dev, sizeof(*pdsp), GFP_KERNEL);
15101508
if (!pdsp) {
15111509
of_node_put(child);
1512-
dev_err(dev, "out of memory allocating pdsp\n");
15131510
return -ENOMEM;
15141511
}
15151512
pdsp->name = knav_queue_find_name(child);

0 commit comments

Comments
 (0)