diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-03 11:18:14 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-04 08:31:42 +0100 |
commit | a1d621cbe3cc9ad7e8bdf35f51cbe61e5182ca1d (patch) | |
tree | bf240581c97a167d62edbe12fdf912c8ca4baf80 /common | |
parent | 97407dad8015f5900d83d185a05aa2f478d867ab (diff) | |
download | barebox-a1d621cbe3cc9ad7e8bdf35f51cbe61e5182ca1d.tar.gz barebox-a1d621cbe3cc9ad7e8bdf35f51cbe61e5182ca1d.tar.xz |
imx-bbu-nand-fcb: Remove double write of first fcb
The first FCB page was written twice. One time is enough, drop the
second write.
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, 0 insertions, 4 deletions
diff --git a/common/imx-bbu-nand-fcb.c b/common/imx-bbu-nand-fcb.c index 6e33ee14e2..3eb9e9b169 100644 --- a/common/imx-bbu-nand-fcb.c +++ b/common/imx-bbu-nand-fcb.c @@ -461,10 +461,6 @@ static int imx_bbu_nand_update(struct bbu_handler *handler, struct bbu_data *dat */ memset(fcb_raw_page + mtd->writesize, 0xFF, 2); - ret = raw_write_page(mtd, fcb_raw_page, mtd->erasesize); - if (ret) - goto out; - dbbt->Checksum = 0; dbbt->FingerPrint = 0x54424244; dbbt->Version = 0x01000000; |