projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d480db
)
drivers/mtd/ubi/eba: minor cleanup: tighten scope of a local var
author
Jeff Garzik
<jeff@garzik.org>
Tue, 17 Jul 2007 05:49:56 +0000
(
01:49
-0400)
committer
Jeff Garzik
<jeff@garzik.org>
Tue, 17 Jul 2007 20:18:00 +0000
(16:18 -0400)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/mtd/ubi/eba.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/ubi/eba.c
b/drivers/mtd/ubi/eba.c
index 74002945b71b6d1123f21c0f2766eca37d2f53e8..4dc10c8ab964fd4acf9b9ccdc002172ddc0c4062 100644
(file)
--- a/
drivers/mtd/ubi/eba.c
+++ b/
drivers/mtd/ubi/eba.c
@@
-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);
struct ubi_vid_hdr *vid_hdr;
struct ubi_volume *vol = ubi->volumes[idx];
- uint32_t crc
, crc1
;
+ uint32_t crc;
err = leb_read_lock(ubi, vol_id, lnum);
if (err)
@@
-451,7
+451,7
@@
retry:
}
if (check) {
- crc1 = crc32(UBI_CRC32_INIT, buf, len);
+
uint32_t
crc1 = crc32(UBI_CRC32_INIT, buf, len);
if (crc1 != crc) {
ubi_warn("CRC error: calculated %#08x, must be %#08x",
crc1, crc);