net: openvswitch: Use ERR_CAST() to return
authorYan Zhen <yanzhen@vivo.com>
Thu, 29 Aug 2024 09:55:09 +0000 (17:55 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Aug 2024 18:11:45 +0000 (11:11 -0700)
commitb26b64493343659cce8bbffa358bf39e4f68bdec
treee2d6278daefceea519188abab802af9e66eda7b0
parentf24f966feb62164f4a68d1b84e866504904ac4ac
net: openvswitch: Use ERR_CAST() to return

Using ERR_CAST() is more reasonable and safer, When it is necessary
to convert the type of an error pointer and return it.

Signed-off-by: Yan Zhen <yanzhen@vivo.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/20240829095509.3151987-1-yanzhen@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/flow_netlink.c