mwifiex: keep mwifiex_cancel_pending_ioctl() static

It has some scary comments about "only being called" from the timeout
handler, so let's help keep it that way.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Brian Norris 2017-07-24 18:13:35 -07:00 committed by Kalle Valo
parent 43a0c9aea6
commit 2d98cfd17e
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,8 @@
#include "11n.h" #include "11n.h"
#include "11ac.h" #include "11ac.h"
static void mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter);
/* /*
* This function initializes a command node. * This function initializes a command node.
* *
@ -1074,7 +1076,7 @@ mwifiex_cancel_all_pending_cmd(struct mwifiex_adapter *adapter)
* In case of scan commands, all pending commands in scan pending queue * In case of scan commands, all pending commands in scan pending queue
* are cancelled. * are cancelled.
*/ */
void static void
mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter) mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter)
{ {
struct cmd_ctrl_node *cmd_node = NULL; struct cmd_ctrl_node *cmd_node = NULL;

View File

@ -1080,7 +1080,6 @@ int mwifiex_alloc_cmd_buffer(struct mwifiex_adapter *adapter);
void 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_scan_cmd(struct mwifiex_adapter *adapter); void mwifiex_cancel_pending_scan_cmd(struct mwifiex_adapter *adapter);
void mwifiex_cancel_scan(struct mwifiex_adapter *adapter); void mwifiex_cancel_scan(struct mwifiex_adapter *adapter);