Skip to content

Commit a51942d

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8723bs: Remove unused function RTW_DISABLE_FUNC
Remove unused function RTW_DISABLE_FUNC and its comment. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/46545805edb962ae97b15be60e0a3446aae42701.1725826273.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bbc7568 commit a51942d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/staging/rtl8723bs/include/drv_types.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -452,14 +452,7 @@ struct adapter {
452452
#define DF_RX_BIT BIT1
453453
#define DF_IO_BIT BIT2
454454

455-
/* define RTW_DISABLE_FUNC(padapter, func) (atomic_add(&adapter_to_dvobj(padapter)->disable_func, (func))) */
456455
/* define RTW_ENABLE_FUNC(padapter, func) (atomic_sub(&adapter_to_dvobj(padapter)->disable_func, (func))) */
457-
static inline void RTW_DISABLE_FUNC(struct adapter *padapter, int func_bit)
458-
{
459-
int df = atomic_read(&adapter_to_dvobj(padapter)->disable_func);
460-
df |= func_bit;
461-
atomic_set(&adapter_to_dvobj(padapter)->disable_func, df);
462-
}
463456

464457
static inline void RTW_ENABLE_FUNC(struct adapter *padapter, int func_bit)
465458
{

0 commit comments

Comments
 (0)