--- zzzz-none-000/linux-3.10.107/fs/ubifs/gc.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/fs/ubifs/gc.c 2021-02-04 17:41:59.000000000 +0000 @@ -668,8 +668,7 @@ ubifs_assert(!wbuf->used); for (i = 0; ; i++) { - int space_before = c->leb_size - wbuf->offs - wbuf->used; - int space_after; + int space_before, space_after; cond_resched();