mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
gtp: remove useless initialization
Update b20dc3c684
("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>
This commit is contained in:
parent
8c4e479812
commit
353f5ffbc6
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user