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

Commit 611f5eca authored by David Collins's avatar David Collins
Browse files

avtimer: fix uninitialized variable compilation warning



Fix the following compilation warning in the avtimer driver:

kernel/drivers/platform/msm/avtimer.c:
	In function 'dev_avtimer_probe':
kernel/drivers/platform/msm/avtimer.c:316:
	warning: 'result' may be used uninitialized in this function
error, forbidden warning: avtimer.c:316
make[5]: *** [drivers/platform/msm/avtimer.o] Error 1

Change-Id: Ia760ba174e36bbcd63ed1c18cfcdce4308c825e1
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 0cabfa0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ static const struct file_operations avtimer_fops = {

static int dev_avtimer_probe(struct platform_device *pdev)
{
	int result;
	int result = 0;
	dev_t dev = MKDEV(major, 0);
	struct device *device_handle;
	struct resource *reg_lsb = NULL, *reg_msb = NULL;