diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-07-26 10:00:33 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-08 17:05:43 -0400 |
commit | f9a12cc92a569698cae0630d795bac14f4a875fc (patch) | |
tree | d6f0ab055bd37fa707a3936ee35126c7fc033b48 /drivers | |
parent | d7a92e9cb22497562b1632aebc0d625b17bbfd51 (diff) | |
download | u-boot-f9a12cc92a569698cae0630d795bac14f4a875fc.zip u-boot-f9a12cc92a569698cae0630d795bac14f4a875fc.tar.gz u-boot-f9a12cc92a569698cae0630d795bac14f4a875fc.tar.bz2 |
remoteproc: uclass: Clean up a return
We know that "pa" is non-NULL so it's nicer to just return zero instead
of return !pa. This has no effect on runtime behavior.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/remoteproc/rproc-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c index 50bcc90..19fe405 100644 --- a/drivers/remoteproc/rproc-uclass.c +++ b/drivers/remoteproc/rproc-uclass.c @@ -689,7 +689,7 @@ static int alloc_vring(struct udevice *dev, struct fw_rsc_vdev *rsc, int i) debug("alloc_mem(%#x, %d): %p\n", size, order, pa); vring->da = (uintptr_t)pa; - return !pa; + return 0; } static int handle_vdev(struct udevice *dev, struct fw_rsc_vdev *rsc, |