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


Groups > linux.kernel > #1652303 > unrolled thread

Re: [PATCH] gpio: davinci: Handle return value of clk_prepare_enable

Started byLinus Walleij <linus.walleij@linaro.org>
First post2017-05-29 10:50 +0200
Last post2017-05-29 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] gpio: davinci: Handle return value of clk_prepare_enable Linus Walleij <linus.walleij@linaro.org> - 2017-05-29 10:50 +0200

#1652303 — Re: [PATCH] gpio: davinci: Handle return value of clk_prepare_enable

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-05-29 10:50 +0200
SubjectRe: [PATCH] gpio: davinci: Handle return value of clk_prepare_enable
Message-ID<tMoxb-5JZ-1@gated-at.bofh.it>
On Tue, May 23, 2017 at 11:18 AM, Arvind Yadav
<arvind.yadav.cs@gmail.com> wrote:

> clk_prepare_enable() can fail here and we must check its return value.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>

Patch applied.

Normally we use goto's for the errorpath but in this case I see the
goto is used for positive exit in this driver so this solution is less
messy than adding another goto path.

Yours,
Linus Walleij

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web