]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: remove recurring counter increment
authorNikolay Kulikov <nikolayof23@gmail.com>
Tue, 24 Feb 2026 16:43:19 +0000 (19:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Feb 2026 14:59:12 +0000 (06:59 -0800)
commit9bf1804229a7a768710a0462ac6ae9b28832382d
tree98cfed004b54664c81b16b9b5ccd212d79cd0200
parent0c038cb19a8ac4531a144e3df9ca6fb1458627f1
staging: rtl8723bs: remove recurring counter increment

The code:
cnt += in_ie[cnt + 1] + 2;   /* get next */
is in both the "if" and "else" branches.

Remove this repetition, which will simplify the code and
improve readability.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260224164445.18316-1-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c