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

usb: misc: uss720: 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>
上级 bcf0848d
...@@ -150,10 +150,8 @@ static struct uss720_async_request *submit_async_request(struct parport_uss720_p ...@@ -150,10 +150,8 @@ static struct uss720_async_request *submit_async_request(struct parport_uss720_p
if (!usbdev) if (!usbdev)
return NULL; return NULL;
rq = kzalloc(sizeof(struct uss720_async_request), mem_flags); rq = kzalloc(sizeof(struct uss720_async_request), mem_flags);
if (!rq) { if (!rq)
dev_err(&usbdev->dev, "submit_async_request out of memory\n");
return NULL; return NULL;
}
kref_init(&rq->ref_count); kref_init(&rq->ref_count);
INIT_LIST_HEAD(&rq->asynclist); INIT_LIST_HEAD(&rq->asynclist);
init_completion(&rq->compl); init_completion(&rq->compl);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册