Re: [PATCH] net: fix err_cast.cocci warnings
From: Jens Axboe
Date: Thu Mar 31 2022 - 21:14:24 EST
On 3/31/22 5:33 PM, kernel test robot wrote:
> From: kernel test robot <lkp@xxxxxxxxx>
>
> net/socket.c:1571:9-16: WARNING: ERR_CAST can be used with sock
>
>
> Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Thanks - since I haven't even posted this yet, I'm just going to
fold in the patch.
--
Jens Axboe