Skip to content

Commit

Permalink
dma-buf: Avoid comma separated statements
Browse files Browse the repository at this point in the history
Use semicolons and braces.

Signed-off-by: Joe Perches <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/990bf6f33ccaf73ad56eb4bea8bd2c0db5e90a31.1598331148.git.joe@perches.com
Signed-off-by: Christian König <[email protected]>
(cherry picked from commit e4abd7a)
Signed-off-by: Maarten Lankhorst <[email protected]>
  • Loading branch information
JoePerches authored and mlankhorst committed Feb 9, 2021
1 parent de4248b commit 46d4a93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/dma-buf/st-dma-fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,11 @@ static int thread_signal_callback(void *arg)
dma_fence_signal(f1);

smp_store_mb(cb.seen, false);
if (!f2 || dma_fence_add_callback(f2, &cb.cb, simple_callback))
miss++, cb.seen = true;
if (!f2 ||
dma_fence_add_callback(f2, &cb.cb, simple_callback)) {
miss++;
cb.seen = true;
}

if (!t->before)
dma_fence_signal(f1);
Expand Down

0 comments on commit 46d4a93

Please sign in to comment.