summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Pouiller <jerome.pouiller@silabs.com>2019-12-17 16:15:30 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-18 15:56:27 +0100
commit1a53df55346e1381406a6f4d161aa5acfa99a01c (patch)
tree6c3389ca507159839be61e8fb87f96f569690807
parent7ceb4753ef58185b5a90ccbd3a55373b01a38219 (diff)
staging: wfx: drop useless wfx_scan_complete()
Since wfx_scan_complete() is now only called from wfx_scan_complete_cb(), it make sense to merge the both functions. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20191217161318.31402-47-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wfx/scan.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/wfx/scan.c b/drivers/staging/wfx/scan.c
index 397fe511d34a5..c043f2f79541e 100644
--- a/drivers/staging/wfx/scan.c
+++ b/drivers/staging/wfx/scan.c
@@ -228,12 +228,6 @@ fail:
schedule_work(&wvif->scan.work);
}
-static void wfx_scan_complete(struct wfx_vif *wvif)
-{
- up(&wvif->scan.lock);
- wfx_scan_work(&wvif->scan.work);
-}
-
void wfx_scan_complete_cb(struct wfx_vif *wvif,
const struct hif_ind_scan_cmpl *arg)
{
@@ -257,6 +251,7 @@ void wfx_scan_timeout(struct work_struct *work)
wvif->scan.curr = wvif->scan.end;
hif_stop_scan(wvif);
}
- wfx_scan_complete(wvif);
+ up(&wvif->scan.lock);
+ wfx_scan_work(&wvif->scan.work);
}
}