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

Commit dcf3c1c1 authored by Markus Elfring's avatar Markus Elfring Committed by Tejun Heo
Browse files

pata_arasan_cf: Delete an error message for a failed memory allocation in arasan_cf_probe()



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 avatarTejun Heo <tj@kernel.org>
parent 0a65e125
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -809,10 +809,8 @@ static int arasan_cf_probe(struct platform_device *pdev)
	}

	acdev = devm_kzalloc(&pdev->dev, sizeof(*acdev), GFP_KERNEL);
	if (!acdev) {
		dev_warn(&pdev->dev, "kzalloc fail\n");
	if (!acdev)
		return -ENOMEM;
	}

	if (pdata)
		quirk = pdata->quirk;