]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: rtl8723bs: Fix compilation errors for W=1 build
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 Apr 2025 09:10:19 +0000 (12:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:30:28 +0000 (16:30 +0200)
commitc215f0b5b858f59ddf0e5dde012099739f10d05d
treea98d7d4ad39f83542f332bc2fad2bf1cf1f66e93
parent89d571794f795b626c67dc93bc148af161630a48
staging: rtl8723bs: Fix compilation errors for W=1 build

When building a kernel with Clang 19 the couple of warnings
become the errors (due to CONFIG_WERROR=y by default).

.../rtl8723bs/core/rtw_xmit.c:1939:13: error: variable 'drop_cnt' set but not used [-Werror,-Wunused-but-set-variable]
.../rtl8723bs/hal/hal_com.c:893:6: error: variable 'res' set but not used [-Werror,-Wunused-but-set-variable]

Fix them accordingly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250415091019.545905-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_xmit.c
drivers/staging/rtl8723bs/hal/hal_com.c