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

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

usb: gadget: udc: goku_udc: 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 d9116ca8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1767,8 +1767,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)

	/* alloc, and start init */
	dev = kzalloc (sizeof *dev, GFP_KERNEL);
	if (dev == NULL){
		pr_debug("enomem %s\n", pci_name(pdev));
	if (!dev) {
		retval = -ENOMEM;
		goto err;
	}