net: tipc: Replace expression with offsetof()
authorZheng Yongjun <zhengyongjun3@huawei.com>
Tue, 29 Dec 2020 13:49:04 +0000 (21:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jan 2021 23:43:41 +0000 (15:43 -0800)
commit520ec34385d57ae18ec034ddc38b4b3425b2742b
tree5ea7450c52c0d9e17ae64ccecea85a09a7395fa9
parent2b27748f4a933dc772303dc8ded4e51a8d78b108
net: tipc: Replace expression with offsetof()

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

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/monitor.c