usb: class: usbtmc: delete unnecessary 'out of memory' messages
authorPeter Chen <peter.chen@freescale.com>
Tue, 14 Oct 2014 07:55:56 +0000 (15:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Nov 2014 23:42:04 +0000 (15:42 -0800)
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>
drivers/usb/class/usbtmc.c

index ec97840..960bc08 100644 (file)
@@ -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;