Commit ad748a73 authored by Dmitry Antipov's avatar Dmitry Antipov Committed by Johannes Berg
Browse files

wifi: rt2x00: remove weird self-assignment in rt2800_loft_search()



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: default avatarDmitry Antipov <dmantipov@yandex.ru>
Acked-by: default avatarStanislaw Gruszka <stf_xl@wp.pl>
Link: https://patch.msgid.link/20250321134256.821596-1-dmantipov@yandex.ru


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent b5c6891b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;