[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdaRWSNghaSpjCHGdiGA9NP81y+8A4x447sJYVN_=59fzA@mail.gmail.com>
Date: Tue, 13 Sep 2016 10:44:13 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Colin King <colin.king@...onical.com>
Cc: Andrew Jeffery <andrew@...id.au>, Joel Stanley <joel@....id.au>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] pinctrl: ret needs to be an int for -ve return value from regmap_update_bits
On Sun, Sep 11, 2016 at 10:36 AM, Colin King <colin.king@...onical.com> wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> Macro regmap_update_bits can return a -ve on an error value so ret
> needs to be an integer rather than a bool type.
>
> Fixes warning found by static analysis with cppcheck:
> [drivers/pinctrl/aspeed/pinctrl-aspeed.c:192]: (warning) Comparison of
> a boolean expression with an integer other than 0 or 1.
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Dropping this but added your Reported-by to Arnds patch.
Yours,
Linus Walleij
Powered by blists - more mailing lists