diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-26 11:45:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-15 11:29:27 +0100 |
commit | 30750ef9903470e01ac864bafe366d5c724c545b (patch) | |
tree | 19da412e806ac25f73f442237ab27785d4d6570f /lib | |
parent | 1eee78b58073ff5637e699d4fa61f117440f79a2 (diff) | |
download | barebox-30750ef9903470e01ac864bafe366d5c724c545b.tar.gz barebox-30750ef9903470e01ac864bafe366d5c724c545b.tar.xz |
mtd: rename mtd_all_ff -> mtd_buf_all_ff
To make clear this function checks a given buffer and not data on a mtd
device.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libscan.c b/lib/libscan.c index 0c850ae6e3..29d1cdbec3 100644 --- a/lib/libscan.c +++ b/lib/libscan.c @@ -84,7 +84,7 @@ int libscan_ubi_scan(struct mtd_dev_info *mtd, int fd, struct ubi_scan_info **in goto out_ec; if (be32_to_cpu(ech.magic) != UBI_EC_HDR_MAGIC) { - if (mtd_all_ff(&ech, sizeof(struct ubi_ec_hdr))) { + if (mtd_buf_all_ff(&ech, sizeof(struct ubi_ec_hdr))) { si->empty_cnt += 1; si->ec[eb] = EB_EMPTY; if (v) |