Skip to content

Commit a0348a4

Browse files
Jiasen Linjonmason
authored andcommitted
NTB: Fix static check warning in perf_clear_test
As pthr->dma_chan can't be NULL in this context, so there is no need to check pthr->dma_chan. Fixes: 99a0605 ("NTB: ntb_perf: Fix address err in perf_copy_chunk") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Jiasen Lin <[email protected]> Signed-off-by: Jon Mason <[email protected]>
1 parent f454f4d commit a0348a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ntb/test/ntb_perf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,8 @@ static void perf_clear_test(struct perf_thread *pthr)
10101010
pthr->perf->test_peer->dma_dst_addr,
10111011
pthr->perf->test_peer->outbuf_size,
10121012
DMA_FROM_DEVICE, 0);
1013-
if (pthr->dma_chan)
1014-
dma_release_channel(pthr->dma_chan);
1013+
1014+
dma_release_channel(pthr->dma_chan);
10151015

10161016
no_dma_notify:
10171017
atomic_dec(&perf->tsync);

0 commit comments

Comments
 (0)