Re: [PATCH v1 2/2] platform/x86: serial-multi-instantiate: Remove duplicate check

Ilpo Järvinen
2025-11-27T09:54:39Z

[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]

On Tue, 25 Nov 2025, Andy Shevchenko wrote:

> Since i2c_acpi_client_count() stopped returning 0 and instead
> uses -ENOENT, remove the duplicated check in smi_i2c_probe().
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/platform/x86/serial-multi-instantiate.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c
> index db030b0f176a..3f6f5d51442c 100644
> --- a/drivers/platform/x86/serial-multi-instantiate.c
> +++ b/drivers/platform/x86/serial-multi-instantiate.c
> @@ -198,9 +198,6 @@ static int smi_i2c_probe(struct platform_device *pdev, struct smi *smi,
> ret = i2c_acpi_client_count(adev);
> if (ret < 0)
> return ret;
> - if (!ret)
> - return -ENOENT;
> -
> count = ret;
>
> smi->i2c_devs = devm_kcalloc(dev, count, sizeof(*smi->i2c_devs), GFP_KERNEL);
>

Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

--
i.