Re: [PATCH] mfd: Silence uninitialized variable warning forwm8994-core

From: Mark Brown
Date: Thu Apr 05 2012 - 05:57:56 EST


On Thu, Apr 05, 2012 at 11:49:12AM +0800, Axel Lin wrote:

> - int ret, i, patch_regs;
> + int ret, i, patch_regs = 0;

This just unconditionally squashes any possible warnings from this which
isn't great. If we're going to work around flow analysis bugs like this
it's better to do it by doing something like adding an assignment in the
paths that GCC isn't figuring out than by just squashing everything.

Attachment: signature.asc
Description: Digital signature