Commit 4718a471 authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller
Browse files

netlink: remove duplicated nla_need_padding_for_64bit() check



The need for padding 64bit is implicitly checked by nla_align_64bit(), so
remove this explicit one.

Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b4510d7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -834,7 +834,6 @@ EXPORT_SYMBOL(__nla_reserve);
struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
				   int attrlen, int padattr)
{
	if (nla_need_padding_for_64bit(skb))
	nla_align_64bit(skb, padattr);

	return __nla_reserve(skb, attrtype, attrlen);