[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdaKaTCg=JgiOY0UhzCApZLbsrqZncWnHq31RNqUW92xfA@mail.gmail.com>
Date: Fri, 8 Feb 2019 15:49:08 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Axel Lin <axel.lin@...ics.com>
Cc: Mark Brown <broonie@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] regulator: lm363x: Check return value of gpiod_get_index_optional
On Fri, Feb 8, 2019 at 3:12 PM Axel Lin <axel.lin@...ics.com> wrote:
> gpiod_get_index_optional can return ERR_PTR, add IS_ERR checking for it.
> While at it, also remove a redundant NULL test for gpiod in error path.
>
> Signed-off-by: Axel Lin <axel.lin@...ics.com>
Acked-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists