]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: refactor halbtc8723b1ant_CoexTableWithType() to remove duplication
authorBera Yüzlü <b9788213@gmail.com>
Thu, 26 Feb 2026 13:02:53 +0000 (16:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Mar 2026 16:05:52 +0000 (17:05 +0100)
commitd3bc73362751c4399b5ca78fe8360dbe9c7cd0c5
tree38e76ad642e4e367bfb76533f3987281748f3f54
parent7d7501b66a244398c72fcf02cb57bb704cb5f2fa
staging: rtl8723bs: refactor halbtc8723b1ant_CoexTableWithType() to remove duplication

Replace the verbose switch-case block with a constant 2D array lookup.
This makes the function much more concise and easier to read without
changing the underlying behavior.

Signed-off-by: Bera Yüzlü <b9788213@gmail.com>
Link: https://patch.msgid.link/20260226130253.2145-1-b9788213@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c