summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2016-01-03 22:05:03 +0100
committerHeiko Schocher <hs@denx.de>2016-01-04 09:11:10 +0100
commit6a4595600b968bafcae8ad603bfc1175b6efe1d8 (patch)
treed2f085c9115a4a374abaa8456519c3fb44727d85 /drivers/mtd
parent8e8106dcd540e4c735da6a0b71919747c15ce93a (diff)
downloadu-boot-imx-6a4595600b968bafcae8ad603bfc1175b6efe1d8.zip
u-boot-imx-6a4595600b968bafcae8ad603bfc1175b6efe1d8.tar.gz
u-boot-imx-6a4595600b968bafcae8ad603bfc1175b6efe1d8.tar.bz2
UBI: Fix compile error when CONFIG_UBI_SILENCE_MSG defined
drivers/mtd/ubi/io.c:1354:3: error: 'dump_len' undeclared (first use in this function) dump_len = max_t(int, 128, len - i); Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c
index d1bdec3..0be9c5a 100644
--- a/drivers/mtd/ubi/io.c
+++ b/drivers/mtd/ubi/io.c
@@ -1351,7 +1351,6 @@ static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum,
ubi_err(ubi, "self-check failed for PEB %d:%d, len %d",
pnum, offset, len);
ubi_msg(ubi, "data differ at position %d", i);
- dump_len = max_t(int, 128, len - i);
ubi_msg(ubi, "hex dump of the original buffer from %d to %d",
i, i + dump_len);
print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 1,