Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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>

authored by

Dmitry Antipov and committed by
Johannes Berg
ad748a73 b5c6891b

+1 -1
+1 -1
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
··· 9393 9393 p0, p1, pf, idx0, idx1, ibit); 9394 9394 9395 9395 if (bidx != 5 && pf <= p0 && pf < p1) { 9396 - idxf[iorq] = idxf[iorq]; 9396 + /* no need to adjust idxf[] */; 9397 9397 } else if (p0 < p1) { 9398 9398 pf = p0; 9399 9399 idxf[iorq] = idx0 & 0x3F;