mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
usb: atm: cxacru: 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
78a4a0d22f
commit
04e75e4956
1 changed files with 1 additions and 3 deletions
|
@ -1139,10 +1139,8 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,
|
|||
|
||||
/* instance init */
|
||||
instance = kzalloc(sizeof(*instance), GFP_KERNEL);
|
||||
if (!instance) {
|
||||
usb_dbg(usbatm_instance, "cxacru_bind: no memory for instance data\n");
|
||||
if (!instance)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
instance->usbatm = usbatm_instance;
|
||||
instance->modem_type = (struct cxacru_modem_type *) id->driver_info;
|
||||
|
|
Loading…
Add table
Reference in a new issue