aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorMaciej ┼╗enczykowski <maze@google.com>2018-09-29 23:44:47 -0700
committerDavid S. Miller <davem@davemloft.net>2018-10-02 16:12:39 -0700
commite8e3fbe92c49d1e031eca72542956606c43122ba (patch)
treee8bb36570c41f08cde3e911618eec9534dd8fa21 /net/ipv4/route.c
parentnet: ip_rt_get_source() - use new style struct initializer instead of memset (diff)
downloadlinux-dev-e8e3fbe92c49d1e031eca72542956606c43122ba.tar.xz
linux-dev-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>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c3
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;