video: add guards around 16bpp/32bbp code
[oweals/u-boot.git] / fs / ubifs / budget.c
index c626cbf48430101261b3fafa9c1651f263f59a9b..9eb5d3fed12c1e8df58d0afd98a878e8ac3c9702 100644 (file)
@@ -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 (Битюцкий Артём)
  */
@@ -433,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);
@@ -506,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;
 }