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

Commit d04477d8 authored by Jingoo Han's avatar Jingoo Han Committed by Greg Kroah-Hartman
Browse files

usb: dwc2: gadget: remove unnecessary OOM messages



The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarPaul Zimmerman <paulz@synopsys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9ebe7c3
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -3391,10 +3391,8 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
	int i;
	int i;


	hsotg = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsotg), GFP_KERNEL);
	hsotg = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsotg), GFP_KERNEL);
	if (!hsotg) {
	if (!hsotg)
		dev_err(dev, "cannot get memory\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	/*
	/*
	 * Attempt to find a generic PHY, then look for an old style
	 * Attempt to find a generic PHY, then look for an old style
@@ -3513,7 +3511,6 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
	eps = kcalloc(hsotg->num_of_eps + 1, sizeof(struct s3c_hsotg_ep),
	eps = kcalloc(hsotg->num_of_eps + 1, sizeof(struct s3c_hsotg_ep),
		      GFP_KERNEL);
		      GFP_KERNEL);
	if (!eps) {
	if (!eps) {
		dev_err(dev, "cannot get memory\n");
		ret = -ENOMEM;
		ret = -ENOMEM;
		goto err_supplies;
		goto err_supplies;
	}
	}