diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2015-12-18 10:42:16 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-01-08 11:32:22 +1100 |
commit | 1b47a39ceeaf7febea785375a46f46796dc62bf0 (patch) | |
tree | 7af08b4a3dec68cd071b5b644063afd3d24697a7 /libflash | |
parent | 1f9e84bdf265e571a9f364570dc1e3b496d5ff1b (diff) | |
download | skiboot-1b47a39ceeaf7febea785375a46f46796dc62bf0.zip skiboot-1b47a39ceeaf7febea785375a46f46796dc62bf0.tar.gz skiboot-1b47a39ceeaf7febea785375a46f46796dc62bf0.tar.bz2 |
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 <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r-- | libflash/libffs.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); } |