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:
parent
49d8ffab82
commit
5c47fd6166
|
@ -245,10 +245,8 @@ static ssize_t get_dev_desc_store(struct device *dev,
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
descriptor = kmalloc(sizeof(*descriptor), GFP_KERNEL);
|
descriptor = kmalloc(sizeof(*descriptor), GFP_KERNEL);
|
||||||
if (!descriptor) {
|
if (!descriptor)
|
||||||
dev_err(dev, "failed to allocate descriptor memory\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
udev = create_lvs_device(intf);
|
udev = create_lvs_device(intf);
|
||||||
if (!udev) {
|
if (!udev) {
|
||||||
|
|
Loading…
Reference in New Issue