summaryrefslogtreecommitdiff
path: root/drivers/base/pinctrl.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-01-11 20:32:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-26 19:40:33 +0100
commitfc55e63e148f1db2180867da875460a00aac8bd1 (patch)
treea9200a557d53d03ce47e29626d9984938faf405c /drivers/base/pinctrl.c
parenta6501e4b380faee6bbf41bb2f833977c7ac6491a (diff)
downloadlinux-fc55e63e148f1db2180867da875460a00aac8bd1.tar.gz
counter: fix an IS_ERR() vs NULL bug
There are 8 callers for devm_counter_alloc() and they all check for NULL instead of error pointers. I think NULL is the better thing to return for allocation functions so update counter_alloc() and devm_counter_alloc() to return NULL instead of error pointers. Fixes: c18e2760308e ("counter: Provide alternative counter registration functions") Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20220111173243.GA2192@kili Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/pinctrl.c')
0 files changed, 0 insertions, 0 deletions