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

Commit ee8a2b03 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

esoc: Fix a uninitalized variable warning



Fix an uninitalized variable compiler warning from last_esoc_req_show().

Fixes: f2e94fd8 ("esoc: Add snapshot of esoc driver")
Change-Id: Ic0dedbad09da5c9d1ab5d2897ec16b27966f0ebb
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 015fc200
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/*
/*
 * Copyright (c) 2015, 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015, 2017-2019, The Linux Foundation. All rights reserved.
 */
 */
#include <linux/atomic.h>
#include <linux/atomic.h>
#include <linux/device.h>
#include <linux/device.h>
@@ -262,7 +262,7 @@ static ssize_t last_esoc_req_show(struct device_driver *drv, char *buf)
{
{
	unsigned int i;
	unsigned int i;
	unsigned long flags;
	unsigned long flags;
	size_t count;
	size_t count = 0;


	spin_lock_irqsave(&req_lock, flags);
	spin_lock_irqsave(&req_lock, flags);
	for (i = 0; i < ARRAY_SIZE(req_to_str); i++) {
	for (i = 0; i < ARRAY_SIZE(req_to_str); i++) {