dma-heap: qcom: Relax checks in qti_smmu_proxy_register_callbacks()
Users of qti_smmu_proxy_register_callbacks() need to be able to pass in a NULL function pointer in order to change the behavior of the mapping and unmapping callbacks in our SG operations. Remove the NULL pointer check in qti_smmu_proxy_register_callbacks(). Change-Id: Id7cf86c9063295cff855ce4635582d790f692f8d Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
This commit is contained in:
parent
5266b52cab
commit
93d4fe66b0
@ -578,11 +578,6 @@ EXPORT_SYMBOL(qcom_sg_buf_ops);
|
||||
int qti_smmu_proxy_register_callbacks(smmu_proxy_map_sgtable map_sgtable_fn_ptr,
|
||||
smmu_proxy_unmap_sgtable unmap_sgtable_fn_ptr)
|
||||
{
|
||||
if (!map_sgtable_fn_ptr || !unmap_sgtable_fn_ptr) {
|
||||
pr_err("%s: All callbacks must be provided!\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
smmu_proxy_callback_ops.map_sgtable = map_sgtable_fn_ptr;
|
||||
smmu_proxy_callback_ops.unmap_sgtable = unmap_sgtable_fn_ptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user