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

Commit 9577cafc authored by Komal Bajaj's avatar Komal Bajaj
Browse files

soc: qcom: Initialize variable before use



Initialize variable 'pivot' before use.

Change-Id: I79ae5da6bd77a144bb92083fc5baaaf85d7b720f
Signed-off-by: default avatarKomal Bajaj <kbajaj@codeaurora.org>
parent c77acc02
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -463,7 +463,7 @@ static void swap_irq_info_fn(void *a, void *b, int size)
static struct irq_info *search(struct irq_info *key, struct irq_info *base,
			       size_t num, compare_t cmp)
{
	struct irq_info *pivot;
	struct irq_info *pivot = NULL;
	int result;

	while (num > 0) {
@@ -568,7 +568,7 @@ static void compute_irq_stat(struct work_struct *work)
			     arr_size, cmp_irq_info_fn);
		pr_debug("*pos:%u key:%u\n",
				pos->total_count, key.total_count);
		if (pos->total_count >= key.total_count) {
		if (pos && (pos->total_count >= key.total_count)) {
			if (pos < start)
				pos++;
			else