Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3eb26c9b authored by Karthik Anantha Ram's avatar Karthik Anantha Ram Committed by Alok Chauhan
Browse files

msm: camera: reqmgr: Remove kfree calls on link struct



Links are statically allocated removing the kfree calls for
this struct.

Change-Id: Id912525e3617502233a25053c75ef92bfa03144f
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 6f133308
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1371,12 +1371,10 @@ static struct cam_req_mgr_core_link *__cam_req_mgr_reserve_link(
		kzalloc(sizeof(struct cam_req_mgr_req_queue), GFP_KERNEL);
	if (!in_q) {
		CAM_ERR(CAM_CRM, "failed to create input queue, no mem");
		kfree(link);
		return NULL;
	}

	mutex_lock(&link->lock);
	link->state = CAM_CRM_LINK_STATE_AVAILABLE;
	link->num_devs = 0;
	link->max_delay = 0;
	memset(in_q->slot, 0,
@@ -1413,7 +1411,6 @@ static struct cam_req_mgr_core_link *__cam_req_mgr_reserve_link(
	return link;
error:
	mutex_unlock(&session->lock);
	kfree(link);
	kfree(in_q);
	return NULL;
}