Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rk3576 Downstream U-Boot
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor 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
Nicolas Frattaroli
Rk3576 Downstream U-Boot
Commits
47b6dad3
Commit
47b6dad3
authored
11 years ago
by
Masahiro Yamada
Committed by
Scott Wood
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
nand_util: delete a useless variable
Signed-off-by:
Masahiro Yamada
<
yamada.m@jp.panasonic.com
>
parent
46aabcc4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/mtd/nand/nand_util.c
+1
-2
1 addition, 2 deletions
drivers/mtd/nand/nand_util.c
with
1 addition
and
2 deletions
drivers/mtd/nand/nand_util.c
+
1
−
2
View file @
47b6dad3
...
@@ -51,7 +51,6 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
...
@@ -51,7 +51,6 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
struct
jffs2_unknown_node
cleanmarker
;
struct
jffs2_unknown_node
cleanmarker
;
erase_info_t
erase
;
erase_info_t
erase
;
unsigned
long
erase_length
,
erased_length
;
/* in blocks */
unsigned
long
erase_length
,
erased_length
;
/* in blocks */
int
bbtest
=
1
;
int
result
;
int
result
;
int
percent_complete
=
-
1
;
int
percent_complete
=
-
1
;
const
char
*
mtd_device
=
meminfo
->
name
;
const
char
*
mtd_device
=
meminfo
->
name
;
...
@@ -102,7 +101,7 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
...
@@ -102,7 +101,7 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
puts
(
"Size of erase exceeds limit
\n
"
);
puts
(
"Size of erase exceeds limit
\n
"
);
return
-
EFBIG
;
return
-
EFBIG
;
}
}
if
(
!
opts
->
scrub
&&
bbtest
)
{
if
(
!
opts
->
scrub
)
{
int
ret
=
mtd_block_isbad
(
meminfo
,
erase
.
addr
);
int
ret
=
mtd_block_isbad
(
meminfo
,
erase
.
addr
);
if
(
ret
>
0
)
{
if
(
ret
>
0
)
{
if
(
!
opts
->
quiet
)
if
(
!
opts
->
quiet
)
...
...
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