diff mbox

PCI: exynos: Remove unnecessary OOM messages

Message ID 000301cf6b47$eb8de9f0$c2a9bdd0$%han@samsung.com
State Accepted
Headers show

Commit Message

Jingoo Han May 9, 2014, 5:31 a.m. UTC
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/pci/host/pci-exynos.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Bjorn Helgaas May 27, 2014, 10:59 p.m. UTC | #1
On Fri, May 09, 2014 at 02:31:25PM +0900, Jingoo Han wrote:
> The site-specific OOM messages are unnecessary, because they
> duplicate the MM subsystem generic OOM message.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Applied to pci/host-exynos for v3.16, thanks!

> ---
>  drivers/pci/host/pci-exynos.c |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/pci/host/pci-exynos.c b/drivers/pci/host/pci-exynos.c
> index 3de6bfb..81aa700 100644
> --- a/drivers/pci/host/pci-exynos.c
> +++ b/drivers/pci/host/pci-exynos.c
> @@ -568,10 +568,8 @@ static int __init exynos_pcie_probe(struct platform_device *pdev)
>  
>  	exynos_pcie = devm_kzalloc(&pdev->dev, sizeof(*exynos_pcie),
>  				GFP_KERNEL);
> -	if (!exynos_pcie) {
> -		dev_err(&pdev->dev, "no memory for exynos pcie\n");
> +	if (!exynos_pcie)
>  		return -ENOMEM;
> -	}
>  
>  	pp = &exynos_pcie->pp;
>  
> -- 
> 1.7.10.4
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pci/host/pci-exynos.c b/drivers/pci/host/pci-exynos.c
index 3de6bfb..81aa700 100644
--- a/drivers/pci/host/pci-exynos.c
+++ b/drivers/pci/host/pci-exynos.c
@@ -568,10 +568,8 @@  static int __init exynos_pcie_probe(struct platform_device *pdev)
 
 	exynos_pcie = devm_kzalloc(&pdev->dev, sizeof(*exynos_pcie),
 				GFP_KERNEL);
-	if (!exynos_pcie) {
-		dev_err(&pdev->dev, "no memory for exynos pcie\n");
+	if (!exynos_pcie)
 		return -ENOMEM;
-	}
 
 	pp = &exynos_pcie->pp;