diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-10-03 13:10:26 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-10-11 20:12:53 +0200 |
commit | d679950cb9233903f0de011d81e42e2e56c3573d (patch) | |
tree | 636ccb10fc953a3b9fe8dcdf6ea323479d64f693 /arch/arm/plat-omap/dma.c | |
parent | ARM: OMAP2+: make omap_dma_dev_info __initdata (diff) | |
download | linux-d679950cb9233903f0de011d81e42e2e56c3573d.tar.xz linux-d679950cb9233903f0de011d81e42e2e56c3573d.zip |
ARM: OMAP: Delete an error message for a failed memory allocation in two functions
Omit extra messages for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/dma.c')
-rw-r--r-- | arch/arm/plat-omap/dma.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 1e460b4ee3b9..6ede0427548c 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -1317,11 +1317,8 @@ static int omap_system_dma_probe(struct platform_device *pdev) dma_chan = devm_kcalloc(&pdev->dev, dma_lch_count, sizeof(struct omap_dma_lch), GFP_KERNEL); - if (!dma_chan) { - dev_err(&pdev->dev, "%s: kzalloc fail\n", __func__); + if (!dma_chan) return -ENOMEM; - } - if (dma_omap2plus()) { dma_linked_lch = kzalloc(sizeof(struct dma_link_info) * |