Re: [PATCH] net: sched: use PTR_ERR_OR_ZERO macro in tcf_block_cb_register
From: David Miller
Date: Sat Jul 21 2018 - 19:17:39 EST
From: "Gustavo A. R. Silva" <gustavo@xxxxxxxxxxxxxx>
Date: Wed, 18 Jul 2018 23:14:17 -0500
> This line makes up what macro PTR_ERR_OR_ZERO already does. So,
> make use of PTR_ERR_OR_ZERO rather than an open-code version.
>
> This code was detected with the help of Coccinelle.
>
> Signed-off-by: Gustavo A. R. Silva <gustavo@xxxxxxxxxxxxxx>
Applied to net-next, thanks.