Skip to content

Commit

Permalink
fs/reiserfs/prints.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/prints.c: In function check_internal_block_head:
fs/reiserfs/prints.c:749:21: warning: variable blkh 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 4a70aeb commit 73fbff5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/reiserfs/prints.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,9 +746,6 @@ static void check_leaf_block_head(struct buffer_head *bh)

static void check_internal_block_head(struct buffer_head *bh)
{
struct block_head *blkh;

blkh = B_BLK_HEAD(bh);
if (!(B_LEVEL(bh) > DISK_LEAF_NODE_LEVEL && B_LEVEL(bh) <= MAX_HEIGHT))
reiserfs_panic(NULL, "vs-6025", "invalid level %z", bh);

Expand Down

0 comments on commit 73fbff5

Please sign in to comment.