Commit 6106d888 authored by Markus Elfring's avatar Markus Elfring Committed by Thierry Reding
Browse files

pwm: puv3: Delete an 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 avatarThierry Reding <thierry.reding@gmail.com>
parent d7a131d3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -107,10 +107,8 @@ static int pwm_probe(struct platform_device *pdev)
	int ret;

	puv3 = devm_kzalloc(&pdev->dev, sizeof(*puv3), GFP_KERNEL);
	if (puv3 == NULL) {
		dev_err(&pdev->dev, "failed to allocate memory\n");
	if (!puv3)
		return -ENOMEM;
	}

	puv3->clk = devm_clk_get(&pdev->dev, "OST_CLK");
	if (IS_ERR(puv3->clk))