Skip to contentSkip to conversation

f2fs: remove redundant goto statement in f2fs_read_single_page()

PATCH Applied Li Zetao via Linux-f2fs-devel 3 participants 3 messages Apr 24, 2023 – May 8, 2023 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs: remove redundant goto statement in f2fs_read_single_page()

After the commit "0a4ee518185", this "goto" statement was redundant, remote it for clean code.

---
 fs/f2fs/data.c | 1 -
 1 file changed, 1 deletion(-)
fs/f2fs/data.c +0 -1
index 06b552a0aba2..c9a71b4b09dd 100644
@@ -2171,7 +2171,6 @@ static int f2fs_read_single_page(struct inode *inode, struct page *page,
 	f2fs_update_iostat(F2FS_I_SB(inode), NULL, FS_DATA_READ_IO,
 							F2FS_BLKSIZE);
 	*last_block_in_bio = block_nr;
-	goto out;
 out:
 	*bio_ret = bio;
 	return ret;
Signature · 8 lines
2.34.1



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
#2 lore raw
In reply to Li Zetao via Linux-f2fs-devel
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 7 lines · On Mon, 24 Apr 2023 23:46:48 +0000 you wrote:

After the commit "0a4ee518185", this "goto" statement was redundant, remote it for clean code.

---
 fs/f2fs/data.c | 1 -
 1 file changed, 1 deletion(-)

Here is the summary with links:
- [f2fs-dev,-next] f2fs: remove redundant goto statement in f2fs_read_single_page()

    https://git.kernel.org/jaegeuk/f2fs/c/1223e432d9e1

You are awesome, thank you!

Signature · 10 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html




_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel