Skip to content

Commit 74b7d42

Browse files
Tom Rixjankara
authored andcommitted
reiserfs: remove unused iter variable
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 <[email protected]> Signed-off-by: Jan Kara <[email protected]> Message-Id: <[email protected]>
1 parent 9e1fb91 commit 74b7d42

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/reiserfs/stree.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th,
12621262

12631263
#ifdef CONFIG_REISERFS_CHECK
12641264
char mode;
1265-
int iter = 0;
12661265
#endif
12671266

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

12761275
#ifdef CONFIG_REISERFS_CHECK
1277-
iter++;
12781276
mode =
12791277
#endif
12801278
prepare_for_delete_or_cut(th, inode, path,

0 commit comments

Comments
 (0)