From: zhong jiang <zhongjiang@huawei.com>
Date: Sat, 4 Aug 2018 19:41:41 +0800
Subject: net: Remove some unneeded semicolon
Patch-mainline: v4.19-rc1
Git-commit: 07d53ae4fbdf7458f4d51249aa24d75c76fe52a8
References: bsc#1109837
These semicolons are not needed. Just remove them.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
net/core/utils.c | 2 +-
net/netfilter/ipvs/ip_vs_ctl.c | 2 +-
net/packet/af_packet.c | 4 ++--
net/sunrpc/auth_gss/auth_gss.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
--- a/net/core/utils.c
+++ b/net/core/utils.c
@@ -397,7 +397,7 @@ int inet_pton_with_scope(struct net *net
break;
default:
pr_err("unexpected address family %d\n", af);
- };
+ }
return ret;
}
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -134,7 +134,7 @@ static void update_defense_level(struct
} else {
atomic_set(&ipvs->dropentry, 0);
ipvs->sysctl_drop_entry = 1;
- };
+ }
break;
case 3:
atomic_set(&ipvs->dropentry, 1);
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1597,7 +1597,7 @@ static int fanout_set_data(struct packet
return fanout_set_data_ebpf(po, data, len);
default:
return -EINVAL;
- };
+ }
}
static void fanout_release_data(struct packet_fanout *f)
@@ -1606,7 +1606,7 @@ static void fanout_release_data(struct p
case PACKET_FANOUT_CBPF:
case PACKET_FANOUT_EBPF:
__fanout_set_data_bpf(f, NULL);
- };
+ }
}
static bool __fanout_id_is_free(struct sock *sk, u16 candidate_id)
--- a/net/sunrpc/auth_gss/auth_gss.c
+++ b/net/sunrpc/auth_gss/auth_gss.c
@@ -517,7 +517,7 @@ gss_alloc_msg(struct gss_auth *gss_auth,
err = gss_encode_v1_msg(gss_msg, service_name, gss_auth->target_name);
if (err)
goto err_put_pipe_version;
- };
+ }
kref_get(&gss_auth->kref);
return gss_msg;
err_put_pipe_version: