Skip to content

Commit

Permalink
fix check error : ERROR:OPEN_BRACE
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Lin <[email protected]>
  • Loading branch information
joshualin-petaio committed Jan 28, 2022
1 parent d4add30 commit 138a6d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/remoteproc/remoteproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ remoteproc_get_mem(struct remoteproc *rproc, const char *name,

pa_start = mem->pa;
pa_end = pa_start + mem->size;
if (pa < pa_end)
{
if (pa < pa_end) {
if (pa >= pa_start && (pa + size) <= pa_end)
return mem;
}
Expand All @@ -65,8 +64,7 @@ remoteproc_get_mem(struct remoteproc *rproc, const char *name,

da_start = mem->da;
da_end = da_start + mem->size;
if (da < da_end)
{
if (da < da_end) {
if (da >= da_start && (da + size) <= da_end)
return mem;
}
Expand Down

0 comments on commit 138a6d2

Please sign in to comment.