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>
This commit is contained in:
Родитель
49d8ffab82
Коммит
5c47fd6166
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче