Commit b8f2854b authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman
Browse files

usb: class: usbtmc: delete unnecessary 'out of memory' messages



The memory subsystem has already had similar message for it.

Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 51f1741f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;