summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng
diff options
context:
space:
mode:
authorEric Salem <ericsalem@gmail.com>2017-01-10 22:48:51 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-16 18:08:57 +0100
commite996024f04638dc505f2c4f532af69ff5e8feced (patch)
tree59cc9d3d9c0a5630d9eec357ad29ca4ba5f0402f /drivers/staging/wlan-ng
parent6e017006022abfea5d2466cad936065f45763ad1 (diff)
downloadlinux-e996024f04638dc505f2c4f532af69ff5e8feced.tar.bz2
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>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r--drivers/staging/wlan-ng/hfa384x.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
index 60caf9c37727..5f1851c85f12 100644
--- a/drivers/staging/wlan-ng/hfa384x.h
+++ b/drivers/staging/wlan-ng/hfa384x.h
@@ -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));
}