]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: rtl8723bs: replace rtw_netdev_priv define with inline function
authorIvan Safonov <insafonov@gmail.com>
Sun, 2 Aug 2020 12:42:50 +0000 (15:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 13:56:27 +0000 (15:56 +0200)
commit1808a4c7fcca3f835e099391bcb56f283c5b7874
tree025aa543b8b97daee0c03ca9f2b07d8eb33d30d9
parent0f86cfff5405f9937a9d9544bac25f3b1d9b4f08
staging: rtl8723bs: replace rtw_netdev_priv define with inline function

The function guarantees type checking of arguments and return value.

Result of rtw_netdev_priv macro can be assigned to pointer
with incompatible type without warning. The function allow compiler
to perform this check.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Link: https://lore.kernel.org/r/20200802124249.101341-1-insafonov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/osdep_service_linux.h