Skip to content

Commit

Permalink
reiserfs: remove unused iter variable
Browse files Browse the repository at this point in the history
clang with W=1 reports
fs/reiserfs/stree.c:1265:6: error: variable
  'iter' set but not used [-Werror,-Wunused-but-set-variable]
        int iter = 0;
            ^
This variable is not used so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20230331120325.1855111-1-trix@redhat.com>
  • Loading branch information
Tom Rix authored and Jan Kara committed Mar 31, 2023
1 parent 9e1fb91 commit 74b7d42
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/reiserfs/stree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th,

#ifdef CONFIG_REISERFS_CHECK
char mode;
int iter = 0;
#endif

BUG_ON(!th->t_trans_id);
Expand All @@ -1274,7 +1273,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th,
removed = 0;

#ifdef CONFIG_REISERFS_CHECK
iter++;
mode =
#endif
prepare_for_delete_or_cut(th, inode, path,
Expand Down

0 comments on commit 74b7d42

Please sign in to comment.