[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vf3SZEFmXoqm8-ynyYq5p8Eme93Da87RbCP5-9hzAzrZg@mail.gmail.com>
Date: Fri, 13 Jan 2023 20:47:47 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Alexey Khoroshilov <khoroshilov@...ras.ru>
Cc: Anastasia Belova <abelova@...ralinux.ru>,
Tomasz Duszynski <tomasz.duszynski@...akon.com>,
Lars-Peter Clausen <lars@...afoo.de>,
lvc-project@...uxtesting.org, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, Jonathan Cameron <jic23@...nel.org>
Subject: Re: [lvc-project] [PATCH] iio: chemical: scd30: Add check for NULL in scd30_i2c_command
On Fri, Jan 13, 2023 at 8:41 PM Alexey Khoroshilov
<khoroshilov@...ras.ru> wrote:
> On 13.01.2023 16:33, Anastasia Belova wrote:
> It seems it is better to put the whole validation loop under if (rsp)
> check.
No. The entire patch is redundant.
The code that calls this function is under the control of the same
driver, so we know how to avoid shooting in our foot.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists