[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54A15744.2050602@cogentembedded.com>
Date: Mon, 29 Dec 2014 16:29:40 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Enrico Mioso <mrkiko.rs@...il.com>, netdev@...r.kernel.org
Subject: Re: [RFC PATCH 2/6] cdc_ncm: be more precise in comments for cdc_ncm_prepare_skb_ncm16
Hello.
On 12/29/2014 1:09 PM, Enrico Mioso wrote:
> The function might return NULL: callers must be prepared to this possibility.
> Signed-Off-By: Enrico Mioso <mrkiko.rs@...il.com>
> ---
> drivers/net/usb/cdc_ncm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c
> index 48fee7a..bcd9437 100644
> --- a/drivers/net/usb/cdc_ncm.c
> +++ b/drivers/net/usb/cdc_ncm.c
> @@ -1015,7 +1015,7 @@ static struct usb_cdc_ncm_ndp16 *cdc_ncm_ndp16(struct cdc_ncm_ctx *ctx, struct s
> }
>
> /* Allocate new SKB for use with 16-bit NCM according to actual TX/RX
> - settings */
> + settings; returns NULL in case of errors */
BTW, the preferred style for the multi-line comments in the networking
code is:
/* bla
* bla
*/
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists