summaryrefslogtreecommitdiff
path: root/arch/mips/lib
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-05-09 17:10:06 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-08-13 11:58:48 +0200
commit45bde489e31a75c87a7b3e00d868b2bdf7d22674 (patch)
tree8ead360f1876158352e05e3e2c57357ca1bb4ba7 /arch/mips/lib
parentd62a89bd5b5033649a90fa5bfe0f5b32013ca8f8 (diff)
downloadu-boot-imx-45bde489e31a75c87a7b3e00d868b2bdf7d22674.zip
u-boot-imx-45bde489e31a75c87a7b3e00d868b2bdf7d22674.tar.gz
u-boot-imx-45bde489e31a75c87a7b3e00d868b2bdf7d22674.tar.bz2
MIPS: bootm: fix checkpatch.pl warnings
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/lib')
-rw-r--r--arch/mips/lib/bootm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c
index ade9af4..e7aa11a 100644
--- a/arch/mips/lib/bootm.c
+++ b/arch/mips/lib/bootm.c
@@ -41,7 +41,7 @@ static void boot_prep_linux(bootm_headers_t *images)
#else
sprintf(env_buf, "%lu", (ulong)(gd->ram_size >> 20));
debug("## Giving linux memsize in MB, %lu\n",
- (ulong)(gd->ram_size >> 20));
+ (ulong)(gd->ram_size >> 20));
#endif /* CONFIG_MEMSIZE_IN_BYTES */
linux_env_set("memsize", env_buf);
@@ -114,9 +114,9 @@ static void linux_params_init(ulong start, char *line)
char *next, *quote, *argp;
linux_argc = 1;
- linux_argv = (char **) start;
+ linux_argv = (char **)start;
linux_argv[0] = 0;
- argp = (char *) (linux_argv + LINUX_MAX_ARGS);
+ argp = (char *)(linux_argv + LINUX_MAX_ARGS);
next = line;
@@ -125,7 +125,8 @@ static void linux_params_init(ulong start, char *line)
next = strchr(line, ' ');
while (next && quote && quote < next) {
- /* we found a left quote before the next blank
+ /*
+ * we found a left quote before the next blank
* now we have to find the matching right quote
*/
next = strchr(quote + 1, '"');
@@ -151,9 +152,9 @@ static void linux_params_init(ulong start, char *line)
line = next;
}
- linux_env = (char **) (((ulong) argp + 15) & ~15);
+ linux_env = (char **)(((ulong) argp + 15) & ~15);
linux_env[0] = 0;
- linux_env_p = (char *) (linux_env + LINUX_MAX_ENVS);
+ linux_env_p = (char *)(linux_env + LINUX_MAX_ENVS);
linux_env_idx = 0;
}