]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: sched: use PTR_ERR_OR_ZERO macro in tcf_block_cb_register
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 19 Jul 2018 04:14:17 +0000 (23:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Jul 2018 23:17:08 +0000 (16:17 -0700)
commitbaa2d2b17ee93e2a5b8accc2dd5328db17caf90e
tree5d036e8590e4f34beec541878c16fbd92cf4ea91
parentd1afdc51399c53791ad9affbef67ba3aa206c379
net: sched: use PTR_ERR_OR_ZERO macro in tcf_block_cb_register

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@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c