mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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: 99a0605612
("NTB: ntb_perf: Fix address err in perf_copy_chunk")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiasen Lin <linjiasen@hygon.cn>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
This commit is contained in:
parent
f454f4d191
commit
a0348a4da1
1 changed files with 2 additions and 2 deletions
|
@ -1010,8 +1010,8 @@ static void perf_clear_test(struct perf_thread *pthr)
|
||||||
pthr->perf->test_peer->dma_dst_addr,
|
pthr->perf->test_peer->dma_dst_addr,
|
||||||
pthr->perf->test_peer->outbuf_size,
|
pthr->perf->test_peer->outbuf_size,
|
||||||
DMA_FROM_DEVICE, 0);
|
DMA_FROM_DEVICE, 0);
|
||||||
if (pthr->dma_chan)
|
|
||||||
dma_release_channel(pthr->dma_chan);
|
dma_release_channel(pthr->dma_chan);
|
||||||
|
|
||||||
no_dma_notify:
|
no_dma_notify:
|
||||||
atomic_dec(&perf->tsync);
|
atomic_dec(&perf->tsync);
|
||||||
|
|
Loading…
Reference in a new issue