projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa8410b
)
memory: omap-gpmc: Delete an unnecessary check before the function call "gpiochip_fre...
author
Markus Elfring
<elfring@users.sourceforge.net>
Sat, 23 Jul 2016 16:54:02 +0000
(18:54 +0200)
committer
Roger Quadros
<rogerq@ti.com>
Mon, 29 Aug 2016 08:00:22 +0000
(11:00 +0300)
The gpiochip_free_own_desc() function tests whether its argument is NULL
and then returns immediately. Thus the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Roger Quadros <rogerq@ti.com>
drivers/memory/omap-gpmc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/memory/omap-gpmc.c
b/drivers/memory/omap-gpmc.c
index 869c83fb3c5d90a751d2e1b1d7c03c6e35fa2517..e138875a319672f418a1659e5052c4ab1605f805 100644
(file)
--- a/
drivers/memory/omap-gpmc.c
+++ b/
drivers/memory/omap-gpmc.c
@@
-2143,9
+2143,7
@@
err_child_fail:
ret = -ENODEV;
err_cs:
- if (waitpin_desc)
- gpiochip_free_own_desc(waitpin_desc);
-
+ gpiochip_free_own_desc(waitpin_desc);
err:
gpmc_cs_free(cs);