]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cmd_nvedit.c: clean up syntax highlighting
authorSteven A. Falco <sfalco@harris.com>
Thu, 12 Jun 2008 17:24:42 +0000 (13:24 -0400)
committerWolfgang Denk <wd@denx.de>
Tue, 1 Jul 2008 21:06:53 +0000 (23:06 +0200)
My text-editor (vim) has a bit of trouble syntax-highlighting the
cmd_nvedit.c file, because it apparently does not parse C
ifdef/else/endif. The following patch does not change the behavior of
the code at all, but does allow the editor to properly
syntax-highlight the file.

Signed-off-by: Steve Falco <sfalco@harris.com>
common/cmd_nvedit.c

index b102ae3629e4929fb342e55fa318401b1e0762e0..85a0f94f0fec0a0a11d2d39fd8d95a25b3e2f2fa 100644 (file)
@@ -180,11 +180,12 @@ int _do_setenv (int flag, int argc, char *argv[])
                 * Ethernet Address and serial# can be set only once,
                 * ver is readonly.
                 */
+               if (
 #ifdef CONFIG_HAS_UID
                /* Allow serial# forced overwrite with 0xdeaf4add flag */
-               if ( ((strcmp (name, "serial#") == 0) && (flag != 0xdeaf4add)) ||
+                   ((strcmp (name, "serial#") == 0) && (flag != 0xdeaf4add)) ||
 #else
-               if ( (strcmp (name, "serial#") == 0) ||
+                   (strcmp (name, "serial#") == 0) ||
 #endif
                    ((strcmp (name, "ethaddr") == 0)
 #if defined(CONFIG_OVERWRITE_ETHADDR_ONCE) && defined(CONFIG_ETHADDR)