Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1655752
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/5] ARM: OMAP1: DMA: Delete an error message for a failed memory allocation in omap1_system_dma_init() |
| Date | 2017-06-01 22:50 +0200 |
| Message-ID | <tNFcC-7FC-25@gated-at.bofh.it> (permalink) |
| References | <tNFcB-7FC-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Thu, 1 Jun 2017 21:54:36 +0200
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
arch/arm/mach-omap1/dma.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arm/mach-omap1/dma.c b/arch/arm/mach-omap1/dma.c
index 823dba3dc033..c545b4e01d53 100644
--- a/arch/arm/mach-omap1/dma.c
+++ b/arch/arm/mach-omap1/dma.c
@@ -343,6 +343,4 @@ static int __init omap1_system_dma_init(void)
if (!d) {
- dev_err(&pdev->dev, "%s: Unable to allocate 'd' for %s\n",
- __func__, pdev->name);
ret = -ENOMEM;
goto exit_iounmap;
}
--
2.13.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] ARM-OMAP1: Adjustments for three function implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-06-01 22:50 +0200 [PATCH 2/5] ARM: OMAP1: DMA: Delete an error message for a failed memory allocation in omap1_system_dma_init() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-06-01 22:50 +0200 [PATCH 5/5] ARM: OMAP1: Fix a typo in a comment line SF Markus Elfring <elfring@users.sourceforge.net> - 2017-06-01 23:00 +0200 [PATCH 4/5] ARM: OMAP1: Delete an error message for a failed memory allocation in omap1_dm_timer_init() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-06-01 23:00 +0200 [PATCH 3/5] ARM: OMAP1: DMA: Delete an unnecessary return statement in omap1_show_dma_caps() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-06-01 23:00 +0200 Re: [PATCH 0/5] ARM-OMAP1: Adjustments for three function implementations Tony Lindgren <tony@atomide.com> - 2017-06-07 09:10 +0200
csiph-web