video: rockchip: mpp: iep2: fix err log false print

Change-Id: I032a7a038839b6b5ff83d79f5880955608f90a62
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
This commit is contained in:
Yandong Lin
2024-10-14 17:34:19 +08:00
committed by Tao Huang
parent 5aca25fd6f
commit 0308f07933

View File

@@ -893,9 +893,9 @@ static int iep2_init(struct mpp_dev *mpp)
iep->roi.vaddr = dma_alloc_coherent(mpp->dev, iep->roi.size,
&iep->roi.iova,
GFP_KERNEL);
if (iep->roi.vaddr) {
if (!iep->roi.vaddr) {
dev_err(mpp->dev, "allocate roi buffer failed\n");
//return -ENOMEM;
return -ENOMEM;
}
return 0;