From: Igor Grinberg Date: Mon, 7 Nov 2011 01:14:01 +0000 (+0000) Subject: env: clean env_mgdisk.c checkpatch and code style X-Git-Tag: v2011.12-rc1~143 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6b155666816ee314c214954701abea49e2fcf2cb;p=oweals%2Fu-boot.git 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 --- diff --git a/common/env_mgdisk.c b/common/env_mgdisk.c index b95d85e872..5dd92e709c 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)