forked from Minki/linux
usb: class: usbtmc: delete unnecessary 'out of memory' messages
The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
51f1741fcc
commit
b8f2854b06
@ -1104,10 +1104,8 @@ static int usbtmc_probe(struct usb_interface *intf,
|
||||
dev_dbg(&intf->dev, "%s called\n", __func__);
|
||||
|
||||
data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL);
|
||||
if (!data) {
|
||||
dev_err(&intf->dev, "Unable to allocate kernel memory\n");
|
||||
if (!data)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
data->intf = intf;
|
||||
data->id = id;
|
||||
|
Loading…
Reference in New Issue
Block a user