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:
Lorenzo Bianconi
2025-08-27 11:15:47 +02:00
committed by Felix Fietkau
parent 384d3a9bff
commit 9bae5f956e
-3
View File
@@ -112,9 +112,6 @@ void mt76_scan_work(struct work_struct *work)
local_bh_enable();
out:
if (!duration)
return;
if (dev->scan.chan)
duration = max_t(int, duration,
msecs_to_jiffies(req->duration +