Re: [PATCH 1/4] watchdog: coh901327_wdt: Simplify error handling in probe function

From: Guenter Roeck
Date: Mon Jan 09 2017 - 15:17:22 EST


On Mon, Jan 09, 2017 at 08:38:03PM +0100, Linus Walleij wrote:
> On Wed, Jan 4, 2017 at 4:25 AM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> > Checking if there is no error followed by a goto if there is one is
> > confusing. Reverse the logic.
> >
> > Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
>
> Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
>
Thanks!

Guenter