Re: [PATCH 3/4] usb: gadget: net2280: print error in ep_ops error paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux