wifi: mt76: Remove dead code in mt76_scan_work
Subsystems (2)
Lorenzo Bianconi
maintainerPATCH 1/1 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]>
--- drivers/net/wireless/mediatek/mt76/scan.c | 3 --- 1 file changed, 3 deletions(-)
drivers/net/wireless/mediatek/mt76/scan.c +0 -3
@@ -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 +
---
base-commit: d9104cec3e8fe4b458b74709853231385779001f
change-id: 20250826-mt76_scan_work-dead-code-da8968f46604
Best regards,
Signature · 1 line
Lorenzo Bianconi <[email protected]>