devlink: fix flexible_array.cocci warning
authorGuo Zhengkui <guozhengkui@vivo.com>
Wed, 3 Nov 2021 12:16:06 +0000 (20:16 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Nov 2021 23:43:55 +0000 (16:43 -0700)
commit96d0c9be432dfd4908e96dde7cab860368a348ab
tree41cef33c0923b045d502bcf8357c911cf868b743
parentd00c8ee31729248ba40b4ab25cd3b3b580c6f87c
devlink: fix flexible_array.cocci warning

Fix following coccicheck warning:
./net/core/devlink.c:69:6-10: WARNING use flexible-array member instead

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Link: https://lore.kernel.org/r/20211103121607.27490-1-guozhengkui@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c