staging: rtl8712: Replace FIELD_OFFSET() with offsetof()
authorMauro Dreissig <mukadr@gmail.com>
Wed, 1 Jul 2020 21:44:19 +0000 (18:44 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jul 2020 08:32:13 +0000 (10:32 +0200)
commit2becc421c9f5d161a06869066336b02874533380
tree5c6b0a87e1302daff139397063534ad8fa8d4d61
parentbd7a168a024dcfbc4db7fb79a51c8b574f55b527
staging: rtl8712: Replace FIELD_OFFSET() with offsetof()

Use the existing offsetof() macro instead of duplicating code.

Signed-off-by: Mauro Dreissig <mukadr@gmail.com>
Link: https://lore.kernel.org/r/20200701214420.5566-2-mukadr@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/basic_types.h
drivers/staging/rtl8712/hal_init.c
drivers/staging/rtl8712/rtl871x_ioctl_linux.c