commit | f3c8d2591fa7278abe58ee0278a41d5b130d1718 | [log] [tgz] |
---|---|---|
author | Amitkumar Karwar <akarwar@marvell.com> | Thu Feb 02 20:48:57 2012 -0800 |
committer | John W. Linville <linville@tuxdriver.com> | Mon Feb 06 14:55:53 2012 -0500 |
tree | d035f14b32068527b389d6d5e274a046068e0fee | |
parent | 3d86b93064c7f18378a2008bab9608ca7d11bdbb [diff] |
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>