aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/scan.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2011-06-20 18:21:48 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-22 16:09:47 -0400
commita5ffddb70c5cab29fa00e2fdf12217b64b940796 (patch)
treeaf65f214cbcc9a15d16b0069b54e2ea846d02c2a /drivers/net/wireless/mwifiex/scan.c
parent55f7782e14032c70051aa92d882b4effda407ad5 (diff)
mwifiex: remove casts of void pointers
In some cases local pointers are used to cast void pointers passed to the function. Those unnecessary local pointers are also removed. This patch was inspired by Joe Perches' patch [PATCH net-next 1/2] wireless: Remove casts of void *; and the comments from Julian Calaby. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Cc: Joe Perches <joe@perches.com> Cc: Julian Calaby <julian.calaby@gmail.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/scan.c')
-rw-r--r--drivers/net/wireless/mwifiex/scan.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c
index 5c22860fb40a..6f88c8ab5de5 100644
--- a/drivers/net/wireless/mwifiex/scan.c
+++ b/drivers/net/wireless/mwifiex/scan.c
@@ -2357,12 +2357,10 @@ int mwifiex_scan_networks(struct mwifiex_private *priv,
2357 * - Setting command ID, and proper size 2357 * - Setting command ID, and proper size
2358 * - Ensuring correct endian-ness 2358 * - Ensuring correct endian-ness
2359 */ 2359 */
2360int mwifiex_cmd_802_11_scan(struct host_cmd_ds_command *cmd, void *data_buf) 2360int mwifiex_cmd_802_11_scan(struct host_cmd_ds_command *cmd,
2361 struct mwifiex_scan_cmd_config *scan_cfg)
2361{ 2362{
2362 struct host_cmd_ds_802_11_scan *scan_cmd = &cmd->params.scan; 2363 struct host_cmd_ds_802_11_scan *scan_cmd = &cmd->params.scan;
2363 struct mwifiex_scan_cmd_config *scan_cfg;
2364
2365 scan_cfg = (struct mwifiex_scan_cmd_config *) data_buf;
2366 2364
2367 /* Set fixed field variables in scan command */ 2365 /* Set fixed field variables in scan command */
2368 scan_cmd->bss_mode = scan_cfg->bss_mode; 2366 scan_cmd->bss_mode = scan_cfg->bss_mode;