mirror of https://gitee.com/openkylin/linux.git
staging: atomisp: remove else statement after return
It doesn't need to have else statement after return. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9b7edbb60b
commit
e9f11ace35
|
@ -2951,11 +2951,11 @@ int atomisp_get_metadata(struct atomisp_sub_device *asd, int flag,
|
|||
dev_err(isp->dev, "copy to user failed: copied %d bytes\n",
|
||||
ret);
|
||||
return -EFAULT;
|
||||
} else {
|
||||
list_del_init(&md_buf->list);
|
||||
list_add_tail(&md_buf->list, &asd->metadata[md_type]);
|
||||
}
|
||||
|
||||
list_del_init(&md_buf->list);
|
||||
list_add_tail(&md_buf->list, &asd->metadata[md_type]);
|
||||
|
||||
dev_dbg(isp->dev, "%s: HAL de-queued metadata type %d with exp_id %d\n",
|
||||
__func__, md_type, md->exp_id);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue