]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mwifiex: cleanup in snmp_mib command preparation code
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 3 Feb 2012 04:48:57 +0000 (20:48 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Feb 2012 19:55:53 +0000 (14:55 -0500)
commitf3c8d2591fa7278abe58ee0278a41d5b130d1718
treed035f14b32068527b389d6d5e274a046068e0fee
parent3d86b93064c7f18378a2008bab9608ca7d11bdbb
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>
drivers/net/wireless/mwifiex/sta_cmd.c