Commit 4e89780
EDAC/altera: Remove redundant error logging
A call to platform_get_irq() already prints an error on failure within
its own implementation. So printing another error based on its return
value in the caller is redundant and should be removed. The clean up
also makes if condition block braces unnecessary. Remove that as well.
Issue identified using platform_get_irq.cocci coccinelle semantic patch.
Signed-off-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/Y/+j27kqdhflPtaj@ubun2204.myguest.virtualbox.org1 parent e8d018d commit 4e89780
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2149 | 2149 | | |
2150 | 2150 | | |
2151 | 2151 | | |
2152 | | - | |
2153 | | - | |
| 2152 | + | |
2154 | 2153 | | |
2155 | | - | |
2156 | 2154 | | |
2157 | 2155 | | |
2158 | 2156 | | |
| |||
2184 | 2182 | | |
2185 | 2183 | | |
2186 | 2184 | | |
2187 | | - | |
2188 | | - | |
| 2185 | + | |
2189 | 2186 | | |
2190 | | - | |
| 2187 | + | |
2191 | 2188 | | |
2192 | 2189 | | |
2193 | 2190 | | |
| |||
0 commit comments