|
@@ -1135,12 +1135,12 @@ static int s5p_mfc_probe(struct platform_device *pdev)
|
|
|
}
|
|
|
|
|
|
dev->alloc_ctx[0] = vb2_dma_contig_init_ctx(dev->mem_dev_l);
|
|
|
- if (IS_ERR_OR_NULL(dev->alloc_ctx[0])) {
|
|
|
+ if (IS_ERR(dev->alloc_ctx[0])) {
|
|
|
ret = PTR_ERR(dev->alloc_ctx[0]);
|
|
|
goto err_res;
|
|
|
}
|
|
|
dev->alloc_ctx[1] = vb2_dma_contig_init_ctx(dev->mem_dev_r);
|
|
|
- if (IS_ERR_OR_NULL(dev->alloc_ctx[1])) {
|
|
|
+ if (IS_ERR(dev->alloc_ctx[1])) {
|
|
|
ret = PTR_ERR(dev->alloc_ctx[1]);
|
|
|
goto err_mem_init_ctx_1;
|
|
|
}
|