siox: bus-gpio: 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>
Acked-by: Thorsten Scherer <t.scherer@eckelmann.de>
Link: https://lore.kernel.org/r/20250819121749.613584-1-zhao.xichao@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Xichao Zhao 2025-08-19 20:17:49 +08:00 committed by Greg Kroah-Hartman
parent 2828c318b3
commit 53d2bf583c
1 changed files with 1 additions and 2 deletions

View File

@ -93,8 +93,7 @@ static int siox_gpio_probe(struct platform_device *pdev)
smaster = devm_siox_master_alloc(dev, sizeof(*ddata)); smaster = devm_siox_master_alloc(dev, sizeof(*ddata));
if (!smaster) if (!smaster)
return dev_err_probe(dev, -ENOMEM, return -ENOMEM;
"failed to allocate siox master\n");
platform_set_drvdata(pdev, smaster); platform_set_drvdata(pdev, smaster);
ddata = siox_master_get_devdata(smaster); ddata = siox_master_get_devdata(smaster);