mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
staging: wlan-ng: Fix sparse warnings about endianness
Fixed sparse warnings about endianness. E.g.: warning: cast to restricted __le16 Signed-off-by: Eric Salem <ericsalem@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6e01700602
commit
e996024f04
1 changed files with 2 additions and 2 deletions
|
@ -1388,13 +1388,13 @@ static inline int hfa384x_drvr_getconfig16(struct hfa384x *hw, u16 rid, void *va
|
|||
|
||||
result = hfa384x_drvr_getconfig(hw, rid, val, sizeof(u16));
|
||||
if (result == 0)
|
||||
*((u16 *)val) = le16_to_cpu(*((u16 *)val));
|
||||
le16_to_cpus(val);
|
||||
return result;
|
||||
}
|
||||
|
||||
static inline int hfa384x_drvr_setconfig16(struct hfa384x *hw, u16 rid, u16 val)
|
||||
{
|
||||
u16 value = cpu_to_le16(val);
|
||||
__le16 value = cpu_to_le16(val);
|
||||
|
||||
return hfa384x_drvr_setconfig(hw, rid, &value, sizeof(value));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue