]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-tests: ubi_leb_change_start() no longer uses 'dtype'.
authorBill Pringlemeir <bpringle@sympatico.ca>
Mon, 5 Nov 2012 17:38:36 +0000 (12:38 -0500)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 16 Nov 2012 07:35:25 +0000 (09:35 +0200)
This will not compile for me (due to bit rot?).  Maybe the program is
never used?

Signed-off-by: Bill Pringlemeir <bpringlemeir@nbsps.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
tests/ubi-tests/io_update.c

index e8f09867ee8b3273b30d1c733126c61136fa7c28..ec109e0d514dcdae1b4162155e1b958dba66b647 100644 (file)
@@ -102,8 +102,7 @@ static int test_update1(struct ubi_vol_info *vol_info, int leb_change)
                test_len = total_len - (rand() % (total_len / 10));
 
                if (leb_change) {
-                       if (ubi_leb_change_start(libubi, fd, 0, test_len,
-                                                UBI_SHORTTERM)) {
+                       if (ubi_leb_change_start(libubi, fd, 0, test_len)) {
                                failed("ubi_update_start");
                                goto close;
                        }