Commit e8e3fbe9 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski Committed by David S. Miller

net: inet_rtm_getroute() - use new style struct initializer instead of memset

Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Reviewed-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e351bb62
...@@ -2780,7 +2780,7 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, ...@@ -2780,7 +2780,7 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
struct rtable *rt = NULL; struct rtable *rt = NULL;
struct sk_buff *skb; struct sk_buff *skb;
struct rtmsg *rtm; struct rtmsg *rtm;
struct flowi4 fl4; struct flowi4 fl4 = {};
__be32 dst = 0; __be32 dst = 0;
__be32 src = 0; __be32 src = 0;
kuid_t uid; kuid_t uid;
...@@ -2820,7 +2820,6 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, ...@@ -2820,7 +2820,6 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
if (!skb) if (!skb)
return -ENOBUFS; return -ENOBUFS;
memset(&fl4, 0, sizeof(fl4));
fl4.daddr = dst; fl4.daddr = dst;
fl4.saddr = src; fl4.saddr = src;
fl4.flowi4_tos = rtm->rtm_tos; fl4.flowi4_tos = rtm->rtm_tos;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment