Commit 17963b54 authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones
Browse files

mfd: jz4740-adc: Delete error message for a failed memory allocation



Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 292155be
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -212,10 +212,8 @@ static int jz4740_adc_probe(struct platform_device *pdev)
	int irq_base;

	adc = devm_kzalloc(&pdev->dev, sizeof(*adc), GFP_KERNEL);
	if (!adc) {
		dev_err(&pdev->dev, "Failed to allocate driver structure\n");
	if (!adc)
		return -ENOMEM;
	}

	adc->irq = platform_get_irq(pdev, 0);
	if (adc->irq < 0) {