提交 c592b74f 编写于 作者: A Andy Shevchenko 提交者: Tejun Heo

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 9037908f
...@@ -1677,11 +1677,8 @@ static int sata_dwc_probe(struct platform_device *ofdev) ...@@ -1677,11 +1677,8 @@ static int sata_dwc_probe(struct platform_device *ofdev)
/* Allocate DWC SATA device */ /* Allocate DWC SATA device */
hsdev = kzalloc(sizeof(*hsdev), GFP_KERNEL); hsdev = kzalloc(sizeof(*hsdev), GFP_KERNEL);
if (hsdev == NULL) { if (hsdev == NULL)
dev_err(&ofdev->dev, "kmalloc failed for hsdev\n"); return -ENOMEM;
err = -ENOMEM;
goto error;
}
if (of_property_read_u32(np, "dma-channel", &dma_chan)) { if (of_property_read_u32(np, "dma-channel", &dma_chan)) {
dev_warn(&ofdev->dev, "no dma-channel property set." dev_warn(&ofdev->dev, "no dma-channel property set."
...@@ -1783,7 +1780,6 @@ static int sata_dwc_probe(struct platform_device *ofdev) ...@@ -1783,7 +1780,6 @@ static int sata_dwc_probe(struct platform_device *ofdev)
iounmap(base); iounmap(base);
error_kmalloc: error_kmalloc:
kfree(hsdev); kfree(hsdev);
error:
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册