usb: atm: speedtch: 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
04e75e4956
commit
8b80c106a0
@ -817,7 +817,6 @@ static int speedtch_bind(struct usbatm_data *usbatm,
|
|||||||
instance = kzalloc(sizeof(*instance), GFP_KERNEL);
|
instance = kzalloc(sizeof(*instance), GFP_KERNEL);
|
||||||
|
|
||||||
if (!instance) {
|
if (!instance) {
|
||||||
usb_err(usbatm, "%s: no memory for instance data!\n", __func__);
|
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto fail_release;
|
goto fail_release;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user