diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-05-07 02:11:28 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-05-07 02:35:55 +0300 |
commit | 353f5ffbc63b532aa0c92a7635e84bd53d04644e (patch) | |
tree | f1124ec97b273d89fdfe76c3830411987008ddf5 /drivers/net/gtp.c | |
parent | 8c4e4798123fd8e0c55e48e49db0f24287c18def (diff) | |
download | linux-353f5ffbc63b532aa0c92a7635e84bd53d04644e.tar.xz |
gtp: remove useless initialization
Update b20dc3c68458 ("gtp: Allow to create GTP device without FDs") to
remove useless initialization to NULL, sockets are initialized to
non-NULL just a few lines of code after this.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'drivers/net/gtp.c')
-rw-r--r-- | drivers/net/gtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c index e62d6cbdf9bc..dffb99a97e0f 100644 --- a/drivers/net/gtp.c +++ b/drivers/net/gtp.c @@ -1009,8 +1009,8 @@ static struct sock *gtp_create_sock(int type, struct gtp_dev *gtp) static int gtp_create_sockets(struct gtp_dev *gtp, struct nlattr *data[]) { - struct sock *sk1u = NULL; - struct sock *sk0 = NULL; + struct sock *sk1u; + struct sock *sk0; sk0 = gtp_create_sock(UDP_ENCAP_GTP0, gtp); if (IS_ERR(sk0)) |