Commit f7d7e4b6 authored by Brian Norris's avatar Brian Norris Committed by Kalle Valo

mwifiex: make mwifiex_free_cmd_buffer() return void

It doesn't fail.
Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 5e6588b9
...@@ -427,7 +427,7 @@ int mwifiex_alloc_cmd_buffer(struct mwifiex_adapter *adapter) ...@@ -427,7 +427,7 @@ int mwifiex_alloc_cmd_buffer(struct mwifiex_adapter *adapter)
* The function calls the completion callback for all the command * The function calls the completion callback for all the command
* buffers that still have response buffers associated with them. * buffers that still have response buffers associated with them.
*/ */
int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter) void mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter)
{ {
struct cmd_ctrl_node *cmd_array; struct cmd_ctrl_node *cmd_array;
u32 i; u32 i;
...@@ -436,7 +436,7 @@ int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter) ...@@ -436,7 +436,7 @@ int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter)
if (!adapter->cmd_pool) { if (!adapter->cmd_pool) {
mwifiex_dbg(adapter, FATAL, mwifiex_dbg(adapter, FATAL,
"info: FREE_CMD_BUF: cmd_pool is null\n"); "info: FREE_CMD_BUF: cmd_pool is null\n");
return 0; return;
} }
cmd_array = adapter->cmd_pool; cmd_array = adapter->cmd_pool;
...@@ -464,8 +464,6 @@ int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter) ...@@ -464,8 +464,6 @@ int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter)
kfree(adapter->cmd_pool); kfree(adapter->cmd_pool);
adapter->cmd_pool = NULL; adapter->cmd_pool = NULL;
} }
return 0;
} }
/* /*
......
...@@ -1077,7 +1077,7 @@ int mwifiex_get_debug_info(struct mwifiex_private *, ...@@ -1077,7 +1077,7 @@ int mwifiex_get_debug_info(struct mwifiex_private *,
struct mwifiex_debug_info *); struct mwifiex_debug_info *);
int mwifiex_alloc_cmd_buffer(struct mwifiex_adapter *adapter); int mwifiex_alloc_cmd_buffer(struct mwifiex_adapter *adapter);
int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter); void mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter);
void mwifiex_free_cmd_buffers(struct mwifiex_adapter *adapter); void mwifiex_free_cmd_buffers(struct mwifiex_adapter *adapter);
void mwifiex_cancel_all_pending_cmd(struct mwifiex_adapter *adapter); void mwifiex_cancel_all_pending_cmd(struct mwifiex_adapter *adapter);
void mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter); void mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment