diff options
author | Jan Kara <jack@suse.cz> | 2014-10-23 14:40:20 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-03 16:07:38 -0800 |
commit | 1f7732fe6cc0c37befc74cef1d289cd2272b7a5c (patch) | |
tree | 3a2e923022c9e7ed6a9aba2daed876c7bc7b1488 /fs/f2fs | |
parent | e3fb1b794b5f0c9f9b65707ce4e6be264a9c60f8 (diff) |
f2fs: remove pointless bit testing in f2fs_delete_entry()
There's no point in using test_and_clear_bit_le() when we don't use the
return value of the function. Just use clear_bit_le() instead.
Coverity-id: 1016434
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 4e62bdeb253d..5a49995a666e 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -654,7 +654,7 @@ void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page, dentry_blk = page_address(page); bit_pos = dentry - dentry_blk->dentry; for (i = 0; i < slots; i++) - test_and_clear_bit_le(bit_pos + i, &dentry_blk->dentry_bitmap); + clear_bit_le(bit_pos + i, &dentry_blk->dentry_bitmap); /* Let's check and deallocate this dentry page */ bit_pos = find_next_bit_le(&dentry_blk->dentry_bitmap, |