mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 01:09:38 -05:00
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
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue