]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit188896c65821615c124fbb29a462ea321cb1bcba
tree0e8c0d58d72edd6e9616d4cde630e0543fa48ba7
parentc4b6e2d1f3b1d7b9a97d3d7e913b73e20be9e279
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