mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: Remove dead code in mt76_scan_work
Duration can't be equal to 0 in mt76_scan_work routine so get rid of related if condition. Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
384d3a9bff
commit
9bae5f956e
@@ -112,9 +112,6 @@ void mt76_scan_work(struct work_struct *work)
|
|||||||
local_bh_enable();
|
local_bh_enable();
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (!duration)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (dev->scan.chan)
|
if (dev->scan.chan)
|
||||||
duration = max_t(int, duration,
|
duration = max_t(int, duration,
|
||||||
msecs_to_jiffies(req->duration +
|
msecs_to_jiffies(req->duration +
|
||||||
|
|||||||
Reference in New Issue
Block a user