diff options
author | Maciej Żenczykowski <maze@google.com> | 2018-09-30 08:44:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-03 01:12:39 +0200 |
commit | e8e3fbe92c49d1e031eca72542956606c43122ba (patch) | |
tree | e8bb36570c41f08cde3e911618eec9534dd8fa21 | |
parent | net: ip_rt_get_source() - use new style struct initializer instead of memset (diff) | |
download | linux-e8e3fbe92c49d1e031eca72542956606c43122ba.tar.xz linux-e8e3fbe92c49d1e031eca72542956606c43122ba.zip |
net: inet_rtm_getroute() - use new style struct initializer instead of memset
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/route.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 02482b71498b..048919713f4e 100644 --- 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; |