[PATCH net-next] net: microchip: vcap api: Use ERR_CAST() in vcap_decode_rule()

Simon Horman horms at kernel.org
Wed Aug 2 09:48:28 PDT 2023


On Wed, Aug 02, 2023 at 05:31:56PM +0800, Li Zetao wrote:
> There is a warning reported by coccinelle:
> 
> ./drivers/net/ethernet/microchip/vcap/vcap_api.c:2399:9-16: WARNING:
> ERR_CAST can be used with ri
> 
> Use ERR_CAST instead of ERR_PTR + PTR_ERR to simplify the
> conversion process.
> 
> Signed-off-by: Li Zetao <lizetao1 at huawei.com>

Reviewed-by: Simon Horman <horms at kernel.org>




More information about the linux-arm-kernel mailing list