]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: rtl8723bs: remove unused efuseValue from efuse_OneByteWrite()
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 13 Sep 2024 00:28:13 +0000 (08:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Sep 2024 05:31:55 +0000 (07:31 +0200)
commitaa947d717a498644b019591768be10a1aac713a9
tree01c57c6df11e5dfa71c3ce6962d7bfb2d8e4a158
parentbfa0290f4fc4c84e1283077eecd44147ec27a8c9
staging: rtl8723bs: remove unused efuseValue from efuse_OneByteWrite()

The efuseValue is to store value from register EFUSE_CTRL, and set control
bits including address and write bit. This is no need for RTL8723BS, so
the consumer has been removed. Thus, remove these unused codes are safe.

Otherwiese, clang warns:

rtw_efuse.c:285:6: warning:
 variable 'efuseValue' set but not used [-Wunused-but-set-variable]
  285 |         u32 efuseValue;
      |             ^

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240913002815.5149-3-pkshih@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_efuse.c