Patchwork [U-Boot,06/17] env: clean env_nowhere.c checkpatch and code style

login
register
mail settings
Submitter Igor Grinberg
Date Nov. 7, 2011, 11:14 a.m.
Message ID <1320664451-2678-7-git-send-email-grinberg@compulab.co.il>
Download mbox | patch
Permalink /patch/124052/
State Accepted
Commit dcfe6e6fa1a5902f0848e7be9208a58d4fdaa2f4
Delegated to: Stefano Babic
Headers show

Comments

Igor Grinberg - Nov. 7, 2011, 11:14 a.m.
Cleanup the env_nowhere.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
---
 common/env_nowhere.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

Patch

diff --git a/common/env_nowhere.c b/common/env_nowhere.c
index a6890db..8a3ca19 100644
--- a/common/env_nowhere.c
+++ b/common/env_nowhere.c
@@ -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;
 }