From: Jeff Garzik Date: Tue, 17 Jul 2007 05:49:56 +0000 (-0400) Subject: drivers/mtd/ubi/eba: minor cleanup: tighten scope of a local var X-Git-Tag: v2.6.23-rc1~515^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2ab934b8afa89b9b3e71b7fb66470a19772f5012;p=linux-2.6-omap-h63xx.git drivers/mtd/ubi/eba: minor cleanup: tighten scope of a local var Signed-off-by: Jeff Garzik --- diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c index 74002945b71..4dc10c8ab96 100644 --- 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);