From: Pablo Neira Ayuso Date: Mon, 6 May 2024 23:11:28 +0000 (+0200) Subject: gtp: remove useless initialization X-Git-Tag: net-accept-more-20240515~4^2~12^2~11 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=353f5ffbc63b532aa0c92a7635e84bd53d04644e;p=linux-2.6-block.git 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 --- 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))