]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mt76: Remove dead code in mt76_scan_work
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 26 Aug 2025 08:13:04 +0000 (10:13 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 15 Sep 2025 07:47:39 +0000 (09:47 +0200)
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>
drivers/net/wireless/mediatek/mt76/scan.c

index 9b20ccbeb8cf19d3c231b82121c1dbeec8ab8a33..458f8cdebc1088c2c52360a2b004cf163b0e7e8c 100644 (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 +