Re: [PATCH] gpio: pca953x: initialize ret to zero to avoid returning garbage

From: Linus Walleij
Date: Mon Sep 12 2016 - 09:40:19 EST


On Fri, Sep 9, 2016 at 10:31 AM, Colin King <colin.king@xxxxxxxxxxxxx> wrote:

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> ret is not initialized so it contains garbage. Ensure garbage
> is not returned in the case that pdata && pdata->teardown is false
> by initializing ret to 0.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Patch applied.

Yours,
Linus Walleij