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

Commit 2652de71 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

usb: host: fhci-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 c86af711
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -310,10 +310,8 @@ static struct fhci_usb *fhci_create_lld(struct fhci_hcd *fhci)

	/* allocate memory for SCC data structure */
	usb = kzalloc(sizeof(*usb), GFP_KERNEL);
	if (!usb) {
		fhci_err(fhci, "no memory for SCC data struct\n");
	if (!usb)
		return NULL;
	}

	usb->fhci = fhci;
	usb->hc_list = fhci->hc_list;