projects
/
rtos
/
tinyara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4120e8c
)
fix violations of coding style in wdog
author
Chanhee
<ch2102.lee@samsung.com>
Fri, 19 May 2017 07:20:08 +0000
(16:20 +0900)
committer
Chanhee
<ch2102.lee@samsung.com>
Fri, 19 May 2017 07:20:08 +0000
(16:20 +0900)
Positions of 'else' and parentheses near the else are fixed following coding rules.
os/kernel/wdog/wd_delete.c
patch
|
blob
|
history
diff --git
a/os/kernel/wdog/wd_delete.c
b/os/kernel/wdog/wd_delete.c
index
2b21230
..
c31d94c
100644
(file)
--- a/
os/kernel/wdog/wd_delete.c
+++ b/
os/kernel/wdog/wd_delete.c
@@
-160,15
+160,12
@@
int wd_delete(WDOG_ID wdog)
g_wdnfree++;
DEBUGASSERT(g_wdnfree <= CONFIG_PREALLOC_WDOGS);
irqrestore(state);
- }
- else
- {
+ } else {
/* There is no guarantee that, this API is not called for statically
* allocated timers as wd_delete is a global function. So restore the
* irq properly so that it does not break the system */
irqrestore(state);
-
}
/* Return success */