Commit 352ff3f3 authored by Xu Wang's avatar Xu Wang Committed by Mauro Carvalho Chehab

media: atomisp: Remove unneeded null check

In ia_css_frame_map, the check of 'err' is unneeded to be done twice.

Link: https://lore.kernel.org/linux-media/20211110094910.67951-1-vulab@iscas.ac.cnSigned-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent b467d97f
......@@ -168,7 +168,6 @@ int ia_css_frame_map(struct ia_css_frame **frame,
if (err)
return err;
if (!err) {
if (pgnr < ((PAGE_ALIGN(me->data_bytes)) >> PAGE_SHIFT)) {
dev_err(atomisp_dev,
"user space memory size is less than the expected size..\n");
......@@ -186,7 +185,6 @@ int ia_css_frame_map(struct ia_css_frame **frame,
if (me->data == mmgr_NULL)
err = -EINVAL;
}
error:
if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment