diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2012-02-02 20:48:57 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:55:53 -0500 |
commit | f3c8d2591fa7278abe58ee0278a41d5b130d1718 (patch) | |
tree | d035f14b32068527b389d6d5e274a046068e0fee /drivers/net/wireless/wl3501_cs.c | |
parent | 3d86b93064c7f18378a2008bab9608ca7d11bdbb (diff) | |
download | talos-op-linux-f3c8d2591fa7278abe58ee0278a41d5b130d1718.tar.gz talos-op-linux-f3c8d2591fa7278abe58ee0278a41d5b130d1718.zip |
mwifiex: cleanup in snmp_mib command preparation code
1) Remove unnecessary switch case usage.
2) Replace "X=cpu_to_le16(le16_to_cpu(X) + Y)" by "le16_add_cpu(X, Y)"
3) Declare "ul_temp" variable as u16 instead of u32 to avoid
unnecessary typecasting
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl3501_cs.c')
0 files changed, 0 insertions, 0 deletions