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

Commit 0a6cf5af authored by Raghavendra Rao Ananta's avatar Raghavendra Rao Ananta
Browse files

soc: qcom: pil: Remove unused variable 'seg_id'



The variable 'seg_id', from the data structure 'pil_seg_data',
is initialized but never used. Hence, remove the member variable
from the structure.

Change-Id: Ida17f05924851f5798aee3ee551ba30471e97a3d
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
parent b0d918e4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -896,7 +896,6 @@ static int pil_notify_aop(struct pil_desc *desc, char *status)
static DECLARE_RWSEM(pil_pm_rwsem);

struct pil_seg_data {
	int seg_id;
	struct pil_desc *desc;
	struct pil_seg *seg;
	struct work_struct load_seg_work;
@@ -937,7 +936,6 @@ static int pil_load_segs(struct pil_desc *desc)

	/* Initialize and spawn a thread for each segment */
	list_for_each_entry(seg, &desc->priv->segs, list) {
		pil_seg_data[seg_id].seg_id = seg_id;
		pil_seg_data[seg_id].desc = desc;
		pil_seg_data[seg_id].seg = seg;