diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2020-08-25 05:25:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-25 15:06:19 +0200 |
commit | 4718a471f1a7fc5cc943377c09300bb35138daf9 (patch) | |
tree | 58795cad83d364e4b93fe75008ac7504fadeff03 /lib/nlattr.c | |
parent | net: gain ipv4 mtu when mtu is not locked (diff) | |
download | linux-4718a471f1a7fc5cc943377c09300bb35138daf9.tar.xz linux-4718a471f1a7fc5cc943377c09300bb35138daf9.zip |
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: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/nlattr.c')
-rw-r--r-- | lib/nlattr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/nlattr.c b/lib/nlattr.c index 665bdaff02c8..80ff9fe83696 100644 --- a/lib/nlattr.c +++ b/lib/nlattr.c @@ -834,8 +834,7 @@ 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); + nla_align_64bit(skb, padattr); return __nla_reserve(skb, attrtype, attrlen); } |