summaryrefslogtreecommitdiff
path: root/drivers/w1
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-15 13:43:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-20 15:15:07 +0300
commit1e5d6652154aca23da856ac7926f23217239ea60 (patch)
tree9418caaa9919a52fa0d85349f5e2d9575a3fe1a1 /drivers/w1
parent752144d8939a5b303b753da8528e14d14c2a235c (diff)
downloadlinux-1e5d6652154aca23da856ac7926f23217239ea60.tar.xz
w1: omap-hdq: remove unnecessary ENOMEM messages
Core already prints detailed reports on out of memory: WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230415104304.104134-15-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/masters/omap_hdq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c
index 826207c24bd0..6a39b71eb718 100644
--- a/drivers/w1/masters/omap_hdq.c
+++ b/drivers/w1/masters/omap_hdq.c
@@ -573,10 +573,8 @@ static int omap_hdq_probe(struct platform_device *pdev)
const char *mode;
hdq_data = devm_kzalloc(dev, sizeof(*hdq_data), GFP_KERNEL);
- if (!hdq_data) {
- dev_dbg(&pdev->dev, "unable to allocate memory\n");
+ if (!hdq_data)
return -ENOMEM;
- }
hdq_data->dev = dev;
platform_set_drvdata(pdev, hdq_data);