From 1b47a39ceeaf7febea785375a46f46796dc62bf0 Mon Sep 17 00:00:00 2001 From: Cyril Bur Date: Fri, 18 Dec 2015 10:42:16 +1100 Subject: libffs: Remove struct flash_chip from struct ffs_handle Simply isn't used anymore since libffs knows how to use the blocklevel interface. Signed-off-by: Cyril Bur Signed-off-by: Stewart Smith --- libflash/libffs.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libflash/libffs.c') diff --git a/libflash/libffs.c b/libflash/libffs.c index 5563e52..631f9b8 100644 --- a/libflash/libffs.c +++ b/libflash/libffs.c @@ -36,7 +36,6 @@ enum ffs_type { struct ffs_handle { struct ffs_hdr hdr; /* Converted header */ enum ffs_type type; - struct flash_chip *chip; uint32_t toc_offset; uint32_t max_size; void *cache; @@ -208,7 +207,6 @@ int ffs_open_image(int fd, uint32_t size, uint32_t toc_offset, f->type = ffs_type_image; f->toc_offset = toc_offset; f->max_size = size; - f->chip = NULL; /* Convert and check flash header */ rc = ffs_check_convert_header(&f->hdr, &hdr); @@ -385,8 +383,6 @@ int ffs_update_act_size(struct ffs_handle *ffs, uint32_t part_idx, } ent->actual = cpu_to_be32(act_size); ent->checksum = ffs_checksum(ent, FFS_ENTRY_SIZE_CSUM); - if (!ffs->chip) - return 0; return blocklevel_write(ffs->bl, offset, ent, FFS_ENTRY_SIZE); } -- cgit v1.1