fix violations of coding style in wdog
authorChanhee <ch2102.lee@samsung.com>
Fri, 19 May 2017 07:20:08 +0000 (16:20 +0900)
committerChanhee <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

index 2b21230..c31d94c 100644 (file)
@@ -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 */