Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e26e74b1 authored by Colin Ian King's avatar Colin Ian King Committed by Wim Van Sebroeck
Browse files

watchdog: remove error message when unable to allocate watchdog device



The dev_err message is superfluous because the failure is already
printed by dev_kzalloc, so remove it.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent b97cb21a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -160,10 +160,8 @@ static int jz4740_wdt_probe(struct platform_device *pdev)

	drvdata = devm_kzalloc(&pdev->dev, sizeof(struct jz4740_wdt_drvdata),
			       GFP_KERNEL);
	if (!drvdata) {
		dev_err(&pdev->dev, "Unable to alloacate watchdog device\n");
	if (!drvdata)
		return -ENOMEM;
	}

	if (heartbeat < 1 || heartbeat > MAX_HEARTBEAT)
		heartbeat = DEFAULT_HEARTBEAT;