On Fri, Mar 12, 2021 at 8:31 AM Michal Simek <[email protected]> wrote:
> Static analyzer tool found that the ret variable is not initialized but
> code expects ret value >=0 when pinconf is skipped in the first pinmux
> loop. The same expectation is for pinmux in a pinconf loop.
> That's why initialize ret to 0 to avoid uninitialized ret value in first
> loop or reusing ret value from first loop in second.
>
> Addresses-Coverity: ("Uninitialized variables")
> Signed-off-by: Michal Simek <[email protected]>
> CC: Colin Ian King <[email protected]>
> CC: Dan Carpenter <[email protected]>
Patch applied!
Yours,
Linus Walleij