wifi: rt2x00: remove weird self-assignment in rt2800_loft_search()
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 21 Mar 2025 13:42:56 +0000 (16:42 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Apr 2025 13:08:28 +0000 (15:08 +0200)
Remove weird self-assignment in 'rt2800_loft_search()' assuming
that it was just a typo. Compile tested only.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Link: https://patch.msgid.link/20250321134256.821596-1-dmantipov@yandex.ru
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c

index e5f553a..b7ea606 100644 (file)
@@ -9393,7 +9393,7 @@ static void rt2800_loft_search(struct rt2x00_dev *rt2x00dev, u8 ch_idx,
                                   p0, p1, pf, idx0, idx1, ibit);
 
                        if (bidx != 5 && pf <= p0 && pf < p1) {
-                               idxf[iorq] = idxf[iorq];
+                               /* no need to adjust idxf[] */;
                        } else if (p0 < p1) {
                                pf = p0;
                                idxf[iorq] = idx0 & 0x3F;