提交 314e6725 编写于 作者: W Wolfram Sang 提交者: Greg Kroah-Hartman

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

All kmalloc-based functions print enough information on failures.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 13dcf780
...@@ -601,11 +601,8 @@ static int uhci_start(struct usb_hcd *hcd) ...@@ -601,11 +601,8 @@ static int uhci_start(struct usb_hcd *hcd)
uhci->frame_cpu = kcalloc(UHCI_NUMFRAMES, sizeof(*uhci->frame_cpu), uhci->frame_cpu = kcalloc(UHCI_NUMFRAMES, sizeof(*uhci->frame_cpu),
GFP_KERNEL); GFP_KERNEL);
if (!uhci->frame_cpu) { if (!uhci->frame_cpu)
dev_err(uhci_dev(uhci),
"unable to allocate memory for frame pointers\n");
goto err_alloc_frame_cpu; goto err_alloc_frame_cpu;
}
uhci->td_pool = dma_pool_create("uhci_td", uhci_dev(uhci), uhci->td_pool = dma_pool_create("uhci_td", uhci_dev(uhci),
sizeof(struct uhci_td), 16, 0); sizeof(struct uhci_td), 16, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册