Skip to content

Commit

Permalink
fs/reiserfs/stree.c: remove set but not used variables
Browse files Browse the repository at this point in the history
Fixes gcc '-Wunused-but-set-variable' warning:

fs/reiserfs/stree.c: In function search_by_key:
fs/reiserfs/stree.c:596:6: warning: variable right_neighbor_of_leaf_node set but not used [-Wunused-but-set-variable]

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: zhengbin <[email protected]>
Reported-by: Hulk Robot <[email protected]>
Cc: Jan Kara <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
zhengbin13 authored and torvalds committed Sep 26, 2019
1 parent 6e9ca45 commit 66985cb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/reiserfs/stree.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ int search_by_key(struct super_block *sb, const struct cpu_key *key,
struct buffer_head *bh;
struct path_element *last_element;
int node_level, retval;
int right_neighbor_of_leaf_node;
int fs_gen;
struct buffer_head *reada_bh[SEARCH_BY_KEY_READA];
b_blocknr_t reada_blocks[SEARCH_BY_KEY_READA];
Expand All @@ -614,8 +613,6 @@ int search_by_key(struct super_block *sb, const struct cpu_key *key,

pathrelse(search_path);

right_neighbor_of_leaf_node = 0;

/*
* With each iteration of this loop we search through the items in the
* current node, and calculate the next current node(next path element)
Expand Down Expand Up @@ -701,7 +698,6 @@ int search_by_key(struct super_block *sb, const struct cpu_key *key,
*/
block_number = SB_ROOT_BLOCK(sb);
expected_level = -1;
right_neighbor_of_leaf_node = 0;

/* repeat search from the root */
continue;
Expand Down

0 comments on commit 66985cb

Please sign in to comment.