UBI: Fix compile error when CONFIG_UBI_SILENCE_MSG defined
authorLadislav Michl <ladis@linux-mips.org>
Sun, 3 Jan 2016 21:05:03 +0000 (22:05 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 4 Jan 2016 08:11:10 +0000 (09:11 +0100)
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>
drivers/mtd/ubi/io.c

index d1bdec383795a78017a5ba72c0dcd5b5969bff11..0be9c5a9d5ae0f631581b4d88e185a267baf29ae 100644 (file)
@@ -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,