3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

util: Remove container_of

This commit is contained in:
Denis Kenzior 2019-04-03 11:48:27 -05:00
parent f8af73f2c7
commit 5c9e6b255f

View File

@ -28,10 +28,6 @@
#define align_len(len, boundary) (((len)+(boundary)-1) & ~((boundary)-1))
#define container_of(ptr, type, member) ({ \
const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
#define MAC "%02x:%02x:%02x:%02x:%02x:%02x"
#define MAC_STR(a) a[0], a[1], a[2], a[3], a[4], a[5]