Hi,

On Mon, Feb 02, 2015 at 10:55:25AM +0100, Mian Yousaf Kaukab wrote:
> @@ -465,13 +484,18 @@ static struct usb_request
>       struct net2280_ep       *ep;
>       struct net2280_request  *req;
>  
> -     if (!_ep)
> +     if (!_ep) {
> +             pr_err("%s: Invalid ep\n", __func__);
>               return NULL;
> +     }
>       ep = container_of(_ep, struct net2280_ep, ep);
>  
>       req = kzalloc(sizeof(*req), gfp_flags);
> -     if (!req)
> +     if (!req) {
> +             dev_err(&ep->dev->pdev->dev,
> +                     "%s: Unable to allocate memory for req\n", __func__);

we don't really need this message. I'll drop it myself.

-- 
balbi

Attachment: signature.asc
Description: Digital signature

Reply via email to