UBI: use vol->usable_leb_size instead of (ubi->leb_size - vol->data_pad)
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 16 Sep 2016 14:59:13 +0000 (16:59 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 2 Oct 2016 20:48:14 +0000 (22:48 +0200)
commit5f09aaa9b30c91e6f72790bfb975240e8116d6db
treea358799b6ed7c35094488d83f43c53b5ed75025b
parentecbfa8eabae9cd73522d1d3d15869703c263d859
UBI: use vol->usable_leb_size instead of (ubi->leb_size - vol->data_pad)

vol->usable_size is already set to ubi->leb_size - vol->data_pad. Use
vol->usable_size instead of recalculating it.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/cdev.c