Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MMC U-Boot Custodian Tree
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
U-Boot
Custodians
MMC U-Boot Custodian Tree
Commits
45bde489
Commit
45bde489
authored
11 years ago
by
Daniel Schwierzeck
Browse files
Options
Downloads
Patches
Plain Diff
MIPS: bootm: fix checkpatch.pl warnings
Signed-off-by:
Daniel Schwierzeck
<
daniel.schwierzeck@gmail.com
>
parent
d62a89bd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/mips/lib/bootm.c
+7
-6
7 additions, 6 deletions
arch/mips/lib/bootm.c
with
7 additions
and
6 deletions
arch/mips/lib/bootm.c
+
7
−
6
View file @
45bde489
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment