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>
This commit is contained in:
parent
752144d893
commit
1e5d665215
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue