projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e351bb6
)
net: inet_rtm_getroute() - use new style struct initializer instead of memset
author
Maciej Żenczykowski
<maze@google.com>
Sun, 30 Sep 2018 06:44:47 +0000
(23:44 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 2 Oct 2018 23:12:39 +0000
(16:12 -0700)
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c
patch
|
blob
|
history
diff --git
a/net/ipv4/route.c
b/net/ipv4/route.c
index 02482b71498b4aed2ab013bb0f47d0947ee5b08b..048919713f4e8aacbf9036b2e42d737f3b492911 100644
(file)
--- a/
net/ipv4/route.c
+++ b/
net/ipv4/route.c
@@
-2780,7
+2780,7
@@
static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
struct rtable *rt = NULL;
struct sk_buff *skb;
struct rtmsg *rtm;
- struct flowi4 fl4;
+ struct flowi4 fl4
= {}
;
__be32 dst = 0;
__be32 src = 0;
kuid_t uid;
@@
-2820,7
+2820,6
@@
static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
if (!skb)
return -ENOBUFS;
- memset(&fl4, 0, sizeof(fl4));
fl4.daddr = dst;
fl4.saddr = src;
fl4.flowi4_tos = rtm->rtm_tos;