]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
remoteproc: uclass: Clean up a return
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 26 Jul 2023 07:00:33 +0000 (10:00 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 8 Aug 2023 21:05:43 +0000 (17:05 -0400)
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>
drivers/remoteproc/rproc-uclass.c

index 50bcc9030e98482865b33f1d7a6161ccb363f765..19fe4053be818aa9b6f6f7116e1deb1ac59f78b4 100644 (file)
@@ -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,