mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
nl802154: use nla_get_le64 for get extended addr
This patch uses the nla_get_le64 function instead of doing a force converting to le64. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
c648a0138b
commit
1ee06ef159
@ -753,10 +753,8 @@ static int nl802154_new_interface(struct sk_buff *skb, struct genl_info *info)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* TODO add nla_get_le64 to netlink */
|
||||
if (info->attrs[NL802154_ATTR_EXTENDED_ADDR])
|
||||
extended_addr = (__force __le64)nla_get_u64(
|
||||
info->attrs[NL802154_ATTR_EXTENDED_ADDR]);
|
||||
extended_addr = nla_get_le64(info->attrs[NL802154_ATTR_EXTENDED_ADDR]);
|
||||
|
||||
if (!rdev->ops->add_virtual_intf)
|
||||
return -EOPNOTSUPP;
|
||||
|
Loading…
Reference in New Issue
Block a user