mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
d7a92e9cb2
commit
f9a12cc92a
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue