usb: misc: lvstest: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
这个提交包含在:
@@ -245,10 +245,8 @@ static ssize_t get_dev_desc_store(struct device *dev,
|
||||
int ret;
|
||||
|
||||
descriptor = kmalloc(sizeof(*descriptor), GFP_KERNEL);
|
||||
if (!descriptor) {
|
||||
dev_err(dev, "failed to allocate descriptor memory\n");
|
||||
if (!descriptor)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
udev = create_lvs_device(intf);
|
||||
if (!udev) {
|
||||
|
在新工单中引用
屏蔽一个用户