summaryrefslogtreecommitdiff
path: root/common/env_nowhere.c
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2011-11-07 01:14:00 +0000
committerStefano Babic <sbabic@denx.de>2011-11-22 08:39:25 +0100
commitdcfe6e6fa1a5902f0848e7be9208a58d4fdaa2f4 (patch)
tree625055b3eb7194e643925602bd6810a50c625c76 /common/env_nowhere.c
parentd09b1787a4b1396e296fb69e7f1ab1d6345441d9 (diff)
env: clean env_nowhere.c checkpatch and code style
Cleanup the env_nowhere.c checkpatch warnings, errors and coding style. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'common/env_nowhere.c')
-rw-r--r--common/env_nowhere.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/env_nowhere.c b/common/env_nowhere.c
index a6890dbd75d..8a3ca1978ff 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;
}