Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2ab934b8
Commit
2ab934b8
authored
Jul 17, 2007
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/mtd/ubi/eba: minor cleanup: tighten scope of a local var
Signed-off-by:
Jeff Garzik
<
jeff@garzik.org
>
parent
0d480db8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/eba.c
+2
-2
No files found.
drivers/mtd/ubi/eba.c
View file @
2ab934b8
...
@@ -368,7 +368,7 @@ int ubi_eba_read_leb(struct ubi_device *ubi, int vol_id, int lnum, void *buf,
...
@@ -368,7 +368,7 @@ int ubi_eba_read_leb(struct ubi_device *ubi, int vol_id, int lnum, void *buf,
int
err
,
pnum
,
scrub
=
0
,
idx
=
vol_id2idx
(
ubi
,
vol_id
);
int
err
,
pnum
,
scrub
=
0
,
idx
=
vol_id2idx
(
ubi
,
vol_id
);
struct
ubi_vid_hdr
*
vid_hdr
;
struct
ubi_vid_hdr
*
vid_hdr
;
struct
ubi_volume
*
vol
=
ubi
->
volumes
[
idx
];
struct
ubi_volume
*
vol
=
ubi
->
volumes
[
idx
];
uint32_t
crc
,
crc1
;
uint32_t
crc
;
err
=
leb_read_lock
(
ubi
,
vol_id
,
lnum
);
err
=
leb_read_lock
(
ubi
,
vol_id
,
lnum
);
if
(
err
)
if
(
err
)
...
@@ -451,7 +451,7 @@ int ubi_eba_read_leb(struct ubi_device *ubi, int vol_id, int lnum, void *buf,
...
@@ -451,7 +451,7 @@ int ubi_eba_read_leb(struct ubi_device *ubi, int vol_id, int lnum, void *buf,
}
}
if
(
check
)
{
if
(
check
)
{
crc1
=
crc32
(
UBI_CRC32_INIT
,
buf
,
len
);
uint32_t
crc1
=
crc32
(
UBI_CRC32_INIT
,
buf
,
len
);
if
(
crc1
!=
crc
)
{
if
(
crc1
!=
crc
)
{
ubi_warn
(
"CRC error: calculated %#08x, must be %#08x"
,
ubi_warn
(
"CRC error: calculated %#08x, must be %#08x"
,
crc1
,
crc
);
crc1
,
crc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment