Commit b7594148 authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann

ieee802154: cleanups for ieee802154.h

This patch removes some const from non-pointer types and fixes the
function name for the ieee802154_is_valid_extended_unicast_addr
comment.
Reviewed-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: default avatarAlexander Aring <aar@pengutronix.de>
Acked-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 87820441
...@@ -270,17 +270,17 @@ static inline bool ieee802154_is_intra_pan(__le16 fc) ...@@ -270,17 +270,17 @@ static inline bool ieee802154_is_intra_pan(__le16 fc)
* *
* @len: psdu len with (MHR + payload + MFR) * @len: psdu len with (MHR + payload + MFR)
*/ */
static inline bool ieee802154_is_valid_psdu_len(const u8 len) static inline bool ieee802154_is_valid_psdu_len(u8 len)
{ {
return (len == IEEE802154_ACK_PSDU_LEN || return (len == IEEE802154_ACK_PSDU_LEN ||
(len >= IEEE802154_MIN_PSDU_LEN && len <= IEEE802154_MTU)); (len >= IEEE802154_MIN_PSDU_LEN && len <= IEEE802154_MTU));
} }
/** /**
* ieee802154_is_valid_psdu_len - check if extended addr is valid * ieee802154_is_valid_extended_unicast_addr - check if extended addr is valid
* @addr: extended addr to check * @addr: extended addr to check
*/ */
static inline bool ieee802154_is_valid_extended_unicast_addr(const __le64 addr) static inline bool ieee802154_is_valid_extended_unicast_addr(__le64 addr)
{ {
/* Bail out if the address is all zero, or if the group /* Bail out if the address is all zero, or if the group
* address bit is set. * address bit is set.
......
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