Message ID | 20170529082624.1689-1-leon@kernel.org (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/drivers/infiniband/core/netlink.c b/drivers/infiniband/core/netlink.c index b784055423c8..fcc9702efd38 100644 --- a/drivers/infiniband/core/netlink.c +++ b/drivers/infiniband/core/netlink.c @@ -230,10 +230,7 @@ static void ibnl_rcv(struct sk_buff *skb) int ibnl_unicast(struct sk_buff *skb, struct nlmsghdr *nlh, __u32 pid) { - int err; - - err = netlink_unicast(nls, skb, pid, 0); - return (err < 0) ? err : 0; + return nlmsg_unicast(nls, skb, pid); } EXPORT_SYMBOL(ibnl_unicast); @@ -256,7 +253,6 @@ int __init ibnl_init(void) return -ENOMEM; } - nls->sk_sndtimeo = 10 * HZ; return 0; }