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

Commit 314e6725 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

usb: host: uhci-hcd: don't print on ENOMEM



All kmalloc-based functions print enough information on failures.

Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 13dcf780
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -601,11 +601,8 @@ static int uhci_start(struct usb_hcd *hcd)

	uhci->frame_cpu = kcalloc(UHCI_NUMFRAMES, sizeof(*uhci->frame_cpu),
			GFP_KERNEL);
	if (!uhci->frame_cpu) {
		dev_err(uhci_dev(uhci),
			"unable to allocate memory for frame pointers\n");
	if (!uhci->frame_cpu)
		goto err_alloc_frame_cpu;
	}

	uhci->td_pool = dma_pool_create("uhci_td", uhci_dev(uhci),
			sizeof(struct uhci_td), 16, 0);