summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrea della Porta <sfaragnaus@gmail.com>2017-04-29 09:30:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-15 08:43:55 +0300
commitdea20579a69ab68cdca6adf79bb7c0c162eb9b72 (patch)
treeb6be25f3bd26022d27be8bc695f377b4f2aa3885 /include
parent9bbf84e6041fb0d7f67208ec8557473ffcd7157c (diff)
downloadlinux-dea20579a69ab68cdca6adf79bb7c0c162eb9b72.tar.xz
staging: wlan-ng: prism2mgmt.c: fixed a double endian conversion before calling hfa384x_drvr_setconfig16, also fixes relative sparse warning
staging: wlan-ng: prism2mgmt.c: This patches fixes a double endian conversion. cpu_to_le16() was called twice first in prism2mgmt_scan and again inside hfa384x_drvr_setconfig16() for the same variable, hence it was swapped twice. Incidentally, it also fixed the following sparse warning: drivers/staging/wlan-ng/prism2mgmt.c:173:30: warning: incorrect type in assignment (different base types) drivers/staging/wlan-ng/prism2mgmt.c:173:30: expected unsigned short [unsigned] [usertype] word drivers/staging/wlan-ng/prism2mgmt.c:173:30: got restricted __le16 [usertype] <noident> Unfortunately, only compile tested. Signed-off-by: Andrea della Porta <sfaragnaus@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions