diff mbox series

[4/5] net: Remove meaningless jump label out_fs

Message ID 1596714859-25352-1-git-send-email-linmiaohe@huawei.com
State Accepted
Delegated to: David Miller
Headers show
Series None | expand

Commit Message

Miaohe Lin Aug. 6, 2020, 11:54 a.m. UTC
From: Miaohe Lin <linmiaohe@huawei.com>

The out_fs jump label has nothing to do but goto out.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 net/socket.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

David Miller Aug. 8, 2020, 9:23 p.m. UTC | #1
From: linmiaohe <linmiaohe@huawei.com>
Date: Thu, 6 Aug 2020 19:54:19 +0800

> From: Miaohe Lin <linmiaohe@huawei.com>
> 
> The out_fs jump label has nothing to do but goto out.
> 
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>

Applied.
diff mbox series

Patch

diff --git a/net/socket.c b/net/socket.c
index ee9c9dac4728..e1a1195ce69e 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -3056,7 +3056,7 @@  static int __init sock_init(void)
 
 	err = register_filesystem(&sock_fs_type);
 	if (err)
-		goto out_fs;
+		goto out;
 	sock_mnt = kern_mount(&sock_fs_type);
 	if (IS_ERR(sock_mnt)) {
 		err = PTR_ERR(sock_mnt);
@@ -3079,7 +3079,6 @@  static int __init sock_init(void)
 
 out_mount:
 	unregister_filesystem(&sock_fs_type);
-out_fs:
 	goto out;
 }