Re: [PATCH] regulator: tps65219: fix Wextra warning

From: Mark Brown
Date: Fri Jan 20 2023 - 00:33:42 EST


On Thu, Jan 19, 2023 at 09:07:38AM +0100, Arnd Bergmann wrote:

> It looks like you merged another workaround from Randy Dunlap now as
> commit 2bbba115c3c9 ("regulator: tps65219: use IS_ERR() to detect an error
> pointer"), but I think that one is just as wrong as the one I submitted:
> the 'rdev' variable still remains uninitialized, and checking its value
> after it has already been used is not helpful.

Right, that's just changing the way the result is parsed, it's
nothing to do with making sure things are initialised. It's just
a coccinelle style thing.

Attachment: signature.asc
Description: PGP signature