parisc: pdt: Use PTR_ERR_OR_ZERO() to simplify code
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 9 Aug 2023 09:19:53 +0000 (17:19 +0800)
committerHelge Deller <deller@gmx.de>
Thu, 10 Aug 2023 15:32:09 +0000 (17:32 +0200)
commit56cf894effc2946f273f7bfc9a28f3741978156c
tree1efd3eeaa5a17f410825b9271705d65d55dd0bae
parenta0f4b7879f2e14986200747d1b545e5daac8c624
parisc: pdt: Use PTR_ERR_OR_ZERO() to simplify code

Return PTR_ERR_OR_ZERO() instead of return 0 or PTR_ERR() to
simplify code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/pdt.c