| .. | .. | 
|---|
 | 1 | +// SPDX-License-Identifier: GPL-2.0-only  | 
|---|
| 1 | 2 |  /* | 
|---|
| 2 | 3 |   * This file is part of UBIFS. | 
|---|
| 3 | 4 |   * | 
|---|
| 4 | 5 |   * 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  | 
|---|
| 18 | 6 |   * | 
|---|
| 19 | 7 |   * Authors: Adrian Hunter | 
|---|
| 20 | 8 |   *          Artem Bityutskiy (Битюцкий Артём) | 
|---|
| .. | .. | 
|---|
| 564 | 552 |   */ | 
|---|
| 565 | 553 |  int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot) | 
|---|
| 566 | 554 |  { | 
|---|
| 567 |  | -	int lnum, offs, len, err = 0, uninitialized_var(last_level), child_cnt;  | 
|---|
 | 555 | +	int lnum, offs, len, err = 0, last_level, child_cnt;  | 
|---|
| 568 | 556 |  	int first = 1, iip; | 
|---|
| 569 | 557 |  	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;  | 
|---|
| 572 | 560 |  	struct ubifs_idx_node *idx; | 
|---|
| 573 | 561 |  	struct list_head list; | 
|---|
| 574 | 562 |  	struct idx_node *i; | 
|---|