mirror of https://gitee.com/openkylin/linux.git
mwifiex: make mwifiex_free_cmd_buffer() return void
It doesn't fail. Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
5e6588b9d4
commit
f7d7e4b689
|
@ -427,7 +427,7 @@ int mwifiex_alloc_cmd_buffer(struct mwifiex_adapter *adapter)
|
|||
* The function calls the completion callback for all the command
|
||||
* 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;
|
||||
u32 i;
|
||||
|
@ -436,7 +436,7 @@ int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter)
|
|||
if (!adapter->cmd_pool) {
|
||||
mwifiex_dbg(adapter, FATAL,
|
||||
"info: FREE_CMD_BUF: cmd_pool is null\n");
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
cmd_array = adapter->cmd_pool;
|
||||
|
@ -464,8 +464,6 @@ int mwifiex_free_cmd_buffer(struct mwifiex_adapter *adapter)
|
|||
kfree(adapter->cmd_pool);
|
||||
adapter->cmd_pool = NULL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1077,7 +1077,7 @@ int mwifiex_get_debug_info(struct mwifiex_private *,
|
|||
struct mwifiex_debug_info *);
|
||||
|
||||
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_cancel_all_pending_cmd(struct mwifiex_adapter *adapter);
|
||||
void mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter);
|
||||
|
|
Loading…
Reference in New Issue