Commit ab3726f5 authored by Jiasen Lin's avatar Jiasen Lin Committed by Yang Yingliang
Browse files

NTB: Fix static check warning in perf_clear_test



mainline inclusion
from mainline-v5.8-rc1
commit a0348a4d
category: bugfix
bugzilla: NA
CVE: NA
---------------------------

As pthr->dma_chan can't be NULL in this context, so there is
no need to check pthr->dma_chan.

Fixes: 99a06056 ("NTB: ntb_perf: Fix address err in perf_copy_chunk")
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJiasen Lin <linjiasen@hygon.cn>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
Signed-off-by: default avatarHanjun Guo <guohanjun@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 97bca9c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment