Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1482270 > unrolled thread

Re: [PATCH] pinctrl: aspeed: fix regmap error handling

Started byLinus Walleij <linus.walleij@linaro.org>
First post2016-09-13 10:50 +0200
Last post2016-09-13 10:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] pinctrl: aspeed: fix regmap error handling Linus Walleij <linus.walleij@linaro.org> - 2016-09-13 10:50 +0200

#1482270 — Re: [PATCH] pinctrl: aspeed: fix regmap error handling

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-09-13 10:50 +0200
SubjectRe: [PATCH] pinctrl: aspeed: fix regmap error handling
Message-ID<sgRzI-7TC-23@gated-at.bofh.it>
On Fri, Sep 9, 2016 at 11:26 AM, Arnd Bergmann <arnd@arndb.de> wrote:

> The newly added aspeed driver tries to check for a negative return
> value from a pinctrl function, but stores the intermediate value in
> a 'bool' variable, which cannot work:
>
> drivers/pinctrl/aspeed/pinctrl-aspeed.c: In function 'aspeed_sig_expr_set':
> drivers/pinctrl/aspeed/pinctrl-aspeed.c:192:11: error: comparison of constant '0' with boolean expression is always false [-Werror=bool-compare]
>
> This slightly reworks the logic to use an explicit comparison with zero
> before assigning to the temporary variable.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Patch applied with the ACKs.
Also added Colin as Reported-by.

Yours,
Linus Walleij

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web