diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2018-12-25 09:59:23 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-03 10:31:15 +0100 |
commit | ff0af6d04eca0fbd941ee0c21d9d39c9d3ebbe94 (patch) | |
tree | f29aeeb32bd36bbe9bd0f88ce83d094e3ae01b0e /common | |
parent | 6b35641c326a0a1b98fa77fab995bf77872747d8 (diff) | |
download | barebox-ff0af6d04eca0fbd941ee0c21d9d39c9d3ebbe94.tar.gz barebox-ff0af6d04eca0fbd941ee0c21d9d39c9d3ebbe94.tar.xz |
imx-bbu-nand-fcb: Remove unused variable partition_size
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/imx-bbu-nand-fcb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c index 8383aeacf7..a29a1bf91a 100644 --- a/common/imx-bbu-nand-fcb.c +++ b/common/imx-bbu-nand-fcb.c @@ -1198,9 +1198,8 @@ static int imx_bbu_nand_update(struct bbu_handler *handler, struct bbu_data *dat int ret, i; struct fcb_block *fcb = NULL; void *fw = NULL, *fw_orig = NULL; - unsigned fw_size, partition_size; enum filetype filetype; - unsigned num_blocks_fw; + unsigned num_blocks_fw, fw_size; int used = 0; int fw_orig_len; int used_refresh = 0, unused_refresh = 0; @@ -1222,7 +1221,6 @@ static int imx_bbu_nand_update(struct bbu_handler *handler, struct bbu_data *dat } mtd = bcb_cdev->mtd; - partition_size = mtd->size; num_blocks_fw = imx_bbu_firmware_max_blocks(mtd); if (num_blocks_fw < 1) { |