env: clean env_nowhere.c checkpatch and code style
authorIgor Grinberg <grinberg@compulab.co.il>
Mon, 7 Nov 2011 01:14:00 +0000 (01:14 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 22 Nov 2011 07:39:25 +0000 (08:39 +0100)
Cleanup the env_nowhere.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
common/env_nowhere.c

index a6890dbd75dfadd40500e4b66f252b64fe2d581a..8a3ca1978ff329b87d33a2ea01cdf14105a9c294 100644 (file)
@@ -31,7 +31,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-env_t *env_ptr = NULL;
+env_t *env_ptr;
 
 void env_relocate_spec(void)
 {
@@ -39,7 +39,7 @@ void env_relocate_spec(void)
 
 uchar env_get_char_spec(int index)
 {
-       return ( *((uchar *)(gd->env_addr + index)) );
+       return *((uchar *)(gd->env_addr + index));
 }
 
 /*
@@ -49,8 +49,8 @@ uchar env_get_char_spec(int index)
  */
 int env_init(void)
 {
-       gd->env_addr  = (ulong)&default_environment[0];
-       gd->env_valid = 0;
+       gd->env_addr    = (ulong)&default_environment[0];
+       gd->env_valid   = 0;
 
-       return (0);
+       return 0;
 }