Skip to content

Commit 353f5ff

Browse files
committed
gtp: remove useless initialization
Update b20dc3c ("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 <[email protected]>
1 parent 8c4e479 commit 353f5ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/gtp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,8 @@ static struct sock *gtp_create_sock(int type, struct gtp_dev *gtp)
10091009

10101010
static int gtp_create_sockets(struct gtp_dev *gtp, struct nlattr *data[])
10111011
{
1012-
struct sock *sk1u = NULL;
1013-
struct sock *sk0 = NULL;
1012+
struct sock *sk1u;
1013+
struct sock *sk0;
10141014

10151015
sk0 = gtp_create_sock(UDP_ENCAP_GTP0, gtp);
10161016
if (IS_ERR(sk0))

0 commit comments

Comments
 (0)