[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VcvVuZR-dyKZcPW2TwgT8RDT6z78kbdarv79YG_NY=C3Q@mail.gmail.com>
Date: Fri, 12 Feb 2021 18:24:28 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: "Rafael J. Wysocki" <rafael@...nel.org>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Len Brown <lenb@...nel.org>
Subject: Re: [PATCH v2 5/5] ACPI: property: Refactor acpi_data_prop_read_single()
On Fri, Feb 12, 2021 at 6:11 PM Rafael J. Wysocki <rafael@...nel.org> wrote:
> On Fri, Feb 12, 2021 at 5:01 PM Andy Shevchenko
> <andriy.shevchenko@...ux.intel.com> wrote:
> > On Fri, Feb 12, 2021 at 03:31:24PM +0100, Rafael J. Wysocki wrote:
> > > On Fri, Feb 12, 2021 at 3:14 PM Andy Shevchenko
> > > <andriy.shevchenko@...ux.intel.com> wrote:
...
> > > > + if (ret)
> > > > + return ret;
> > >
> > > else if (!val)
> > > ret = 1;
> >
> > But then it become a bug again :-)
>
> I'm not sure why? The checks below will still happen and they may
> cause an error to be returned.
Oh, I misinterpreted ret = as plain return. Right. Seems okay.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists