projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0549cd1
)
staging: wfx: fix missing 'static' keyword
author
Jérôme Pouiller
<jerome.pouiller@silabs.com>
Tue, 5 May 2020 12:37:52 +0000
(14:37 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 13 May 2020 11:26:41 +0000
(13:26 +0200)
Sparse tool noticed that wfx_enable_beacon() is never used outside of
sta.c. Therefore, it can be declared static.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link:
https://lore.kernel.org/r/20200505123757.39506-11-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/sta.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wfx/sta.c
b/drivers/staging/wfx/sta.c
index 74ec0b60408548662006299f2dd4f92ab0dc744d..3ad0b67a7dcadfc28bdcfef4f8b027a8b993e325 100644
(file)
--- a/
drivers/staging/wfx/sta.c
+++ b/
drivers/staging/wfx/sta.c
@@
-519,7
+519,7
@@
void wfx_leave_ibss(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
wfx_do_unjoin(wvif);
}
-void wfx_enable_beacon(struct wfx_vif *wvif, bool enable)
+
static
void wfx_enable_beacon(struct wfx_vif *wvif, bool enable)
{
// Driver has Content After DTIM Beacon in queue. Driver is waiting for
// a signal from the firmware. Since we are going to stop to send