Commit 4ccb0fc2 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman

w1: gpio: remove unnecessary ENOMEM messages

Core already prints detailed reports on out of memory:

  WARNING: Possible unnecessary 'out of memory' message
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230415104304.104134-16-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e5d6652
...@@ -101,10 +101,8 @@ static int w1_gpio_probe(struct platform_device *pdev) ...@@ -101,10 +101,8 @@ static int w1_gpio_probe(struct platform_device *pdev)
master = devm_kzalloc(dev, sizeof(struct w1_bus_master), master = devm_kzalloc(dev, sizeof(struct w1_bus_master),
GFP_KERNEL); GFP_KERNEL);
if (!master) { if (!master)
dev_err(dev, "Out of memory\n");
return -ENOMEM; return -ENOMEM;
}
pdata->gpiod = devm_gpiod_get_index(dev, NULL, 0, gflags); pdata->gpiod = devm_gpiod_get_index(dev, NULL, 0, gflags);
if (IS_ERR(pdata->gpiod)) { if (IS_ERR(pdata->gpiod)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment