hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/fs/ubifs/commit.c
....@@ -1,20 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * This file is part of UBIFS.
34 *
45 * Copyright (C) 2006-2008 Nokia Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published by
8
- * the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License along with
16
- * this program; if not, write to the Free Software Foundation, Inc., 51
17
- * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
186 *
197 * Authors: Adrian Hunter
208 * Artem Bityutskiy (Битюцкий Артём)
....@@ -564,11 +552,11 @@
564552 */
565553 int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot)
566554 {
567
- int lnum, offs, len, err = 0, uninitialized_var(last_level), child_cnt;
555
+ int lnum, offs, len, err = 0, last_level, child_cnt;
568556 int first = 1, iip;
569557 struct ubifs_debug_info *d = c->dbg;
570
- union ubifs_key uninitialized_var(lower_key), upper_key, l_key, u_key;
571
- unsigned long long uninitialized_var(last_sqnum);
558
+ union ubifs_key lower_key, upper_key, l_key, u_key;
559
+ unsigned long long last_sqnum;
572560 struct ubifs_idx_node *idx;
573561 struct list_head list;
574562 struct idx_node *i;