memory: renesas-rpc-if: simplify with PTR_ERR_OR_ZERO
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 24 Jul 2020 07:40:25 +0000 (09:40 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 17 Aug 2020 18:43:50 +0000 (20:43 +0200)
commit3cd7040762a4727894f5f4bbb25550dc6f557ea7
treee7dee3974d60b8c586cbe4f8092b3887cf440091
parentdc1a9283f16a5c5c08a3d3b473e43a826ec3a177
memory: renesas-rpc-if: simplify with PTR_ERR_OR_ZERO

Use PTR_ERR_OR_ZERO to make the code a little bit simpler.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200724074038.5597-17-krzk@kernel.org
drivers/memory/renesas-rpc-if.c