Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315742 > unrolled thread

[PATCH 2/4] f2fs: remove needless condition check

Started byJaegeuk Kim <jaegeuk@kernel.org>
First post2016-01-23 21:20 +0100
Last post2016-01-23 21:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/4] f2fs: remove needless condition check Jaegeuk Kim <jaegeuk@kernel.org> - 2016-01-23 21:20 +0100

#1315742 — [PATCH 2/4] f2fs: remove needless condition check

FromJaegeuk Kim <jaegeuk@kernel.org>
Date2016-01-23 21:20 +0100
Subject[PATCH 2/4] f2fs: remove needless condition check
Message-ID<qUcP7-81a-3@gated-at.bofh.it>
This patch removes needless condition variable.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 fs/f2fs/data.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index b118055..9a8edeb 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1477,13 +1477,9 @@ restart:
 		if (f2fs_lookup_extent_cache(inode, index, &ei)) {
 			dn.data_blkaddr = ei.blk + index - ei.fofs;
 		} else {
-			bool restart = false;
-
 			/* hole case */
 			err = get_dnode_of_data(&dn, index, LOOKUP_NODE);
-			if (err || (!err && dn.data_blkaddr == NULL_ADDR))
-				restart = true;
-			if (restart) {
+			if (err || (!err && dn.data_blkaddr == NULL_ADDR)) {
 				f2fs_put_dnode(&dn);
 				f2fs_lock_op(sbi);
 				locked = true;
-- 
2.6.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web