From e292b5fb39de2c6907ffe751391ae3bbd5603b91 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 24 Jan 2008 13:21:37 +0200 Subject: ubinize: remove dead code Signed-off-by: Artem Bityutskiy --- ubi-utils/src/ubinize.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'ubi-utils/src') diff --git a/ubi-utils/src/ubinize.c b/ubi-utils/src/ubinize.c index 86a18eb..4c3fd97 100644 --- a/ubi-utils/src/ubinize.c +++ b/ubi-utils/src/ubinize.c @@ -640,33 +640,3 @@ out: remove(args.f_out); return err; } - -#if 0 -/** - * pfi2vol_info - convert PFI UBI volume information to libubigen. - * @pfi: PFI UBI volume information - * @n: PFI volume index to convert - * @vi: libubigen volume information - */ -static void pfi2vol_info(const struct pfi_ubi *pfi, int n, - struct ubigen_vol_info *vi, - const struct ubigen_info *ui) -{ - vi->id = pfi->ids[n]; - vi->bytes = pfi->size; - vi->alignment = pfi->alignment; - vi->data_pad = ui->leb_size % vi->alignment; - vi->usable_leb_size = ui->leb_size - vi->data_pad; - vi->type = pfi->vol_type; - vi->name = pfi->names[n]; - vi->name_len = strlen(vi->name); - if (vi->name_len > UBI_VOL_NAME_MAX) { - errmsg("too long name, cut to %d symbols: \"%s\"", - UBI_VOL_NAME_MAX, vi->name); - vi->name_len = UBI_VOL_NAME_MAX; - } - - vi->used_ebs = (vi->bytes + vi->usable_leb_size - 1) / vi->usable_leb_size; - vi->compat = 0; -} -#endif -- cgit v1.2.3