lkml.org 
[lkml]   [2008]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] driver/net/*: remove redundant argument comments
On Fri, Nov 21, 2008 at 11:40 PM, Qinghuang Feng
<qhfeng.kernel@gmail.com> wrote:
> remove redundant argument comments in files of drivers/net/*
>
> Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
> ---
> diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
> index 91795f7..122539a 100644
> --- a/drivers/net/e1000e/netdev.c
> +++ b/drivers/net/e1000e/netdev.c
> @@ -345,7 +345,6 @@ no_buffers:
> /**
> * e1000_alloc_jumbo_rx_buffers - Replace used jumbo receive buffers
> * @adapter: address of board private structure
> - * @rx_ring: pointer to receive ring structure
> * @cleaned_count: number of buffers to allocate this pass
> **/
>

NAK - rather than removing documentation, I would suggest improving
the documentation. Your suggested patch removes lines in the function
headers which can be (if not already) in documentation. Specifically,
the function header comments for Intel drivers was written in such a
way that it can be parsed out by the kernel documentation scripts to
create an API document.

I would agree that "@rx_ring: pointer to receive ring structure" is
probably not the best documentation, but rather than removing it, I
would suggest improving it.


--
Cheers,
Jeff


\
 
 \ /
  Last update: 2008-11-22 08:57    [W:0.241 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site