staging: r8188eu: replace rtw_netdev_priv define with inline function
authorIvan Safonov <insafonov@gmail.com>
Sat, 1 Aug 2020 18:02:35 +0000 (21:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Aug 2020 10:47:37 +0000 (12:47 +0200)
commit5df9de5a40b00c965febad655773d6fb9a7961d5
tree0e8c0d58d72edd6e9616d4cde630e0543fa48ba7
parentd47cecef7116d9c32efb254f7aa91ae5fb2df545
staging: r8188eu: 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/20200801180235.34116-1-insafonov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/osdep_service.h