From 22f5fe49d60ea43524a902408b3112a78f2c5aae Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 22 Jan 2008 16:02:52 +0200 Subject: ubi-utils: massive changes This commit basically removes most of the old ubi utilities as they are barely maintainamble. Signed-off-by: Artem Bityutskiy --- ubi-utils/src/unubi_analyze.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ubi-utils/src/unubi_analyze.c') diff --git a/ubi-utils/src/unubi_analyze.c b/ubi-utils/src/unubi_analyze.c index 2ab3b87..3f3a480 100644 --- a/ubi-utils/src/unubi_analyze.c +++ b/ubi-utils/src/unubi_analyze.c @@ -100,7 +100,7 @@ unubi_analyze_ec_hdr(struct eb_info *first, const char *path) { char filename[PATH_MAX + 1]; size_t count, eraseblocks; - uint32_t crc, crc32_table[256]; + uint32_t crc; uint64_t *erase_counts; FILE* fpdata; FILE* fpplot; @@ -109,9 +109,6 @@ unubi_analyze_ec_hdr(struct eb_info *first, const char *path) if (first == NULL) return -1; - /* crc check still needed for `first' linked list */ - init_crc32_table(crc32_table); - /* prepare output files */ memset(filename, 0, PATH_MAX + 1); snprintf(filename, PATH_MAX, "%s/%s", path, FN_EH_DATA); @@ -164,8 +161,7 @@ unubi_analyze_ec_hdr(struct eb_info *first, const char *path) fprintf(fpdata, "# eraseblock_no actual_erase_count " "sorted_erase_count\n"); while (cur != NULL) { - crc = clc_crc32(crc32_table, UBI_CRC32_INIT, &cur->ec, - UBI_EC_HDR_SIZE_CRC); + crc = crc32(UBI_CRC32_INIT, &cur->ec, UBI_EC_HDR_SIZE_CRC); if ((__be32_to_cpu(cur->ec.magic) != UBI_EC_HDR_MAGIC) || (crc != __be32_to_cpu(cur->ec.hdr_crc))) -- cgit v1.2.3