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

Commit d0f99249 authored by Fabio Estevam's avatar Fabio Estevam Committed by Greg Kroah-Hartman
Browse files

usb: chipidea: core: Remove unneeded OOM message



MM core code already complains when devm_kzalloc() fails, so no need to print
the error locally.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4c503dd5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -633,10 +633,8 @@ static int ci_hdrc_probe(struct platform_device *pdev)
		return PTR_ERR(base);

	ci = devm_kzalloc(dev, sizeof(*ci), GFP_KERNEL);
	if (!ci) {
		dev_err(dev, "can't allocate device\n");
	if (!ci)
		return -ENOMEM;
	}

	ci->dev = dev;
	ci->platdata = dev_get_platdata(dev);