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

Commit c592b74f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Tejun Heo
Browse files

sata_dwc_460ex: remove extra message



There is no need to print a message about failure of memory allocation. The
caller will get an error code and may print the same.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 9037908f
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -1677,11 +1677,8 @@ static int sata_dwc_probe(struct platform_device *ofdev)

	/* Allocate DWC SATA device */
	hsdev = kzalloc(sizeof(*hsdev), GFP_KERNEL);
	if (hsdev == NULL) {
		dev_err(&ofdev->dev, "kmalloc failed for hsdev\n");
		err = -ENOMEM;
		goto error;
	}
	if (hsdev == NULL)
		return -ENOMEM;

	if (of_property_read_u32(np, "dma-channel", &dma_chan)) {
		dev_warn(&ofdev->dev, "no dma-channel property set."
@@ -1783,7 +1780,6 @@ static int sata_dwc_probe(struct platform_device *ofdev)
	iounmap(base);
error_kmalloc:
	kfree(hsdev);
error:
	return err;
}