X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=fs%2Fubifs%2Fbudget.c;h=9eb5d3fed12c1e8df58d0afd98a878e8ac3c9702;hb=362b991cbe203cd4795e4231aeb7b3388776da0f;hp=9ed40177cb993ccb4d137c9bef58eb81f8a497e9;hpb=6af857c50df4e62ec08e51ad73c96f63f1480386;p=oweals%2Fu-boot.git diff --git a/fs/ubifs/budget.c b/fs/ubifs/budget.c index 9ed40177cb..9eb5d3fed1 100644 --- a/fs/ubifs/budget.c +++ b/fs/ubifs/budget.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * This file is part of UBIFS. * * Copyright (C) 2006-2008 Nokia Corporation. * - * SPDX-License-Identifier: GPL-2.0+ - * * Authors: Adrian Hunter * Artem Bityutskiy (Битюцкий Артём) */ @@ -20,7 +19,6 @@ */ #include "ubifs.h" -#define __UBOOT__ #ifndef __UBOOT__ #include #else @@ -434,7 +432,6 @@ static int calc_dd_growth(const struct ubifs_info *c, */ int ubifs_budget_space(struct ubifs_info *c, struct ubifs_budget_req *req) { - int uninitialized_var(cmt_retries), uninitialized_var(wb_retries); int err, idx_growth, data_growth, dd_growth, retried = 0; ubifs_assert(req->new_page <= 1); @@ -507,7 +504,7 @@ again: c->bi.nospace_rp = 1; smp_wmb(); } else - ubifs_err("cannot budget space, error %d", err); + ubifs_err(c, "cannot budget space, error %d", err); return err; }