Re: [PATCH v2] ACPI / platform: Fix return value check in check_acpi_dev()

From: Andy Shevchenko
Date: Thu Jul 09 2020 - 15:56:05 EST


On Fri, Jun 5, 2020 at 2:42 PM Lu Wei <luwei32@xxxxxxxxxx> wrote:
>
> In the function check_acpi_dev(), if it fails to create
> platform device, the return value is ERR_PTR() or NULL. Thus it must
> use IS_ERR_OR_NULL to check return value.
>

Thanks!

> Fixes: ecc83e52b28c (intel-hid: new hid event driver for hotkeys)

This is not the correct format. Please, fix it in the next version, thanks!

> drivers/platform/x86/intel-hid.c | 2 +-
> drivers/platform/x86/intel-vbtn.c | 2 +-

Please, split per driver.

--
With Best Regards,
Andy Shevchenko