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

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

Comments

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

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

Patch

diff --git a/common/env_mgdisk.c b/common/env_mgdisk.c
index b95d85e..5dd92e7 100644
--- a/common/env_mgdisk.c
+++ b/common/env_mgdisk.c
@@ -29,13 +29,13 @@ 
 
 char *env_name_spec = "MG_DISK";
 
-env_t *env_ptr = 0;
+env_t *env_ptr;
 
 DECLARE_GLOBAL_DATA_PTR;
 
 uchar env_get_char_spec(int index)
 {
-	return (*((uchar *)(gd->env_addr + index)));
+	return *((uchar *)(gd->env_addr + index));
 }
 
 void env_relocate_spec(void)