Skip to content

Commit a666ce9

Browse files
ColinIanKingkdave
authored andcommitted
btrfs: remove redundant initialization of variable dirty in btrfs_update_time()
The variable dirty is initialized with a value that is never read, it is being re-assigned later on. Remove the redundant initialization. Cleans up clang scan build warning: fs/btrfs/inode.c:5965:7: warning: Value stored to 'dirty' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent f362374 commit a666ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6031,7 +6031,7 @@ static int btrfs_dirty_inode(struct btrfs_inode *inode)
60316031
static int btrfs_update_time(struct inode *inode, int flags)
60326032
{
60336033
struct btrfs_root *root = BTRFS_I(inode)->root;
6034-
bool dirty = flags & ~S_VERSION;
6034+
bool dirty;
60356035

60366036
if (btrfs_root_readonly(root))
60376037
return -EROFS;

0 commit comments

Comments
 (0)