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 <lorenzo@kernel.org> Link: https://patch.msgid.link/20250826-mt76_scan_work-dead-code-v1-1-ac5234c4d044@kernel.org Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
committed by
Felix Fietkau
parent
6ccb6bb9bd
commit
1318d6822f
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user