summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ftl.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-02-12 22:03:07 +0100
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-03-15 17:25:05 +0100
commitc585da9f5f6186739f0b123b8a5b6353e425f51b (patch)
treeb264d83d56b70e66a28f74ce83f1c4d18fc76813 /drivers/mtd/ftl.c
parentf0a37a8db81ea9c7034e0fff4a430b221019fc50 (diff)
downloadlinux-c585da9f5f6186739f0b123b8a5b6353e425f51b.tar.bz2
mtd: Initialize ->fail_addr early in mtd_erase()
mtd_erase() can return an error before ->fail_addr is initialized to MTD_FAIL_ADDR_UNKNOWN. Move this initialization at the very beginning of the function. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ftl.c')
0 files changed, 0 insertions, 0 deletions