nfp: use list_move instead of list_del/list_add in nfp_cppcore.c
authorBaokun Li <libaokun1@huawei.com>
Wed, 9 Jun 2021 07:09:21 +0000 (15:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jun 2021 20:55:37 +0000 (13:55 -0700)
commit39c3783ec062231b6befc193742161af33e17d88
treed0204ea251f4d06fbb7815d75c3057a0911f3e16
parentdb67f2493431c32935e5b239175df4b0b9cf0171
nfp: use list_move instead of list_del/list_add in nfp_cppcore.c

Using list_move() instead of list_del() + list_add() in nfp_cppcore.c.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c