aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/x86-android-tablets
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-20 16:51:01 +0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-08-28 14:53:32 +0300
commitfaec01b1a4998f3747f55e394409bdcb541af319 (patch)
treef85df5924d373097baead8c20435a22b93d17b16 /drivers/platform/x86/x86-android-tablets
parentplatform/x86: Add WMI driver for Redmibook keyboard (diff)
downloadlinux-faec01b1a4998f3747f55e394409bdcb541af319.tar.gz
linux-faec01b1a4998f3747f55e394409bdcb541af319.zip
platform/x86: x86-android-tablets: Remove the use of dev_err_probe()
The dev_err_probe() doesn't do anything when error is '-ENOMEM'. Therefore, remove the useless call to dev_err_probe(), and just return the value instead. Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Reviewed-by: Hans de Goede <hansg@kernel.org> Link: https://lore.kernel.org/r/20250820085101.395377-1-zhao.xichao@vivo.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/x86-android-tablets')
-rw-r--r--drivers/platform/x86/x86-android-tablets/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/x86-android-tablets/core.c b/drivers/platform/x86/x86-android-tablets/core.c
index 2a9c47178505..db76ba3abd7b 100644
--- a/drivers/platform/x86/x86-android-tablets/core.c
+++ b/drivers/platform/x86/x86-android-tablets/core.c
@@ -265,8 +265,7 @@ static __init int x86_instantiate_spi_dev(const struct x86_dev_info *dev_info, i
spi_devs[idx] = spi_new_device(controller, &board_info);
put_device(&controller->dev);
if (!spi_devs[idx])
- return dev_err_probe(&controller->dev, -ENOMEM,
- "creating SPI-device %d\n", idx);
+ return -ENOMEM;
return 0;
}