|
@@ -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;
|