summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2011-11-07 01:14:01 +0000
committerStefano Babic <sbabic@denx.de>2011-11-22 08:39:25 +0100
commit6b155666816ee314c214954701abea49e2fcf2cb (patch)
tree2daa5a27fb0edcf21fddcc1923d096e96dd1d1cd
parentdcfe6e6fa1a5902f0848e7be9208a58d4fdaa2f4 (diff)
downloadu-boot-imx-6b155666816ee314c214954701abea49e2fcf2cb.zip
u-boot-imx-6b155666816ee314c214954701abea49e2fcf2cb.tar.gz
u-boot-imx-6b155666816ee314c214954701abea49e2fcf2cb.tar.bz2
env: clean env_mgdisk.c checkpatch and code style
Cleanup the env_mgdisk.c checkpatch warnings, errors and coding style. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
-rw-r--r--common/env_mgdisk.c4
1 files changed, 2 insertions, 2 deletions
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)