|
@@ -2311,10 +2311,9 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf,
|
|
|
int ret = -ENOMEM;
|
|
int ret = -ENOMEM;
|
|
|
|
|
|
|
|
ictx = kzalloc(sizeof(struct imon_context), GFP_KERNEL);
|
|
ictx = kzalloc(sizeof(struct imon_context), GFP_KERNEL);
|
|
|
- if (!ictx) {
|
|
|
|
|
- dev_err(dev, "%s: kzalloc failed for context", __func__);
|
|
|
|
|
|
|
+ if (!ictx)
|
|
|
goto exit;
|
|
goto exit;
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
rx_urb = usb_alloc_urb(0, GFP_KERNEL);
|
|
rx_urb = usb_alloc_urb(0, GFP_KERNEL);
|
|
|
if (!rx_urb)
|
|
if (!rx_urb)
|
|
|
goto rx_urb_alloc_failed;
|
|
goto rx_urb_alloc_failed;
|