From: Dan Carpenter Date: Wed, 26 Jul 2023 07:00:33 +0000 (+0300) Subject: remoteproc: uclass: Clean up a return X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f9a12cc92a569698cae0630d795bac14f4a875fc;p=u-boot.git 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 Reviewed-by: Simon Glass --- diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c index 50bcc9030e..19fe4053be 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,