Miquel Raynal 8338304c27 mac802154: Avoid superfluous endianness handling
When compiling scan.c with C=1, Sparse complains with:

   sparse:     expected unsigned short [usertype] val
   sparse:     got restricted __le16 [usertype] pan_id
   sparse: sparse: cast from restricted __le16

   sparse:     expected unsigned long long [usertype] val
   sparse:     got restricted __le64 [usertype] extended_addr
   sparse: sparse: cast from restricted __le64

The tool is right, both pan_id and extended_addr already are rightfully
defined as being __le16 and __le64 on both sides of the operations and
do not require extra endianness handling.

Fixes: 3accf4762734 ("mac802154: Handle basic beaconing")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230130154306.114265-1-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
2023-01-30 17:16:28 +01:00
..
2022-11-28 19:42:17 -08:00
2022-02-25 09:36:06 +01:00
2022-11-22 20:41:54 -08:00
2022-12-02 20:33:30 -08:00
2022-12-01 20:06:06 -08:00
2022-12-02 20:33:30 -08:00
2022-08-22 14:26:30 +01:00
2022-08-22 14:26:30 +01:00