projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c4e479
)
gtp: remove useless initialization
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Mon, 6 May 2024 23:11:28 +0000
(
01:11
+0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Mon, 6 May 2024 23:35:55 +0000
(
01:35
+0200)
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>
drivers/net/gtp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/gtp.c
b/drivers/net/gtp.c
index e62d6cbdf9bc6458064c7c0852fc23db095ae642..dffb99a97e0f78760c1e2d666d645c4fcaf40cc6 100644
(file)
--- 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))