staging: rtl8188eu: explicitly convert from __le16 to integer
authorKristina Martšenko <kristina.martsenko@gmail.com>
Tue, 11 Mar 2014 18:58:14 +0000 (20:58 +0200)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Thu, 13 Mar 2014 23:24:19 +0000 (16:24 -0700)
commitb812982e6b9ce3797f160ad3778766db107b5086
tree92fbae58306fa7bba2d01010b50f521b7b37ebe0
parent17e65fbbe2100937530c3c1ea672c922377496ab
staging: rtl8188eu: explicitly convert from __le16 to integer

BA_para_set (of type __le16) is implicitly cast into an integer for
bitwise operations, after which the result is converted back into a
__le16. Make the initial cast explicit to make the code clearer. In
addition, refactor the code for readability.

This also removes five sparse warnings of the following type:
drivers/staging/rtl8188eu//core/rtw_mlme_ext.c:6114:70: warning: restricted __le16 degrades to integer

Signed-off-by: Kristina Martšenko <kristina.martsenko@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c