mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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 <trix@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz> Message-Id: <20230331120325.1855111-1-trix@redhat.com>
This commit is contained in:
@@ -1262,7 +1262,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th,
|
|||||||
|
|
||||||
#ifdef CONFIG_REISERFS_CHECK
|
#ifdef CONFIG_REISERFS_CHECK
|
||||||
char mode;
|
char mode;
|
||||||
int iter = 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BUG_ON(!th->t_trans_id);
|
BUG_ON(!th->t_trans_id);
|
||||||
@@ -1274,7 +1273,6 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th,
|
|||||||
removed = 0;
|
removed = 0;
|
||||||
|
|
||||||
#ifdef CONFIG_REISERFS_CHECK
|
#ifdef CONFIG_REISERFS_CHECK
|
||||||
iter++;
|
|
||||||
mode =
|
mode =
|
||||||
#endif
|
#endif
|
||||||
prepare_for_delete_or_cut(th, inode, path,
|
prepare_for_delete_or_cut(th, inode, path,
|
||||||
|
Reference in New Issue
Block a user