Re: [PATCH] net: remove member 'max' of struct scm_fp_list

2017-02-10 Thread yuan linyu
On 五, 2017-02-10 at 10:25 -0500, David Miller wrote: > From: yuan linyu > Date: Fri, 10 Feb 2017 20:11:13 +0800 > > > From: yuan linyu > >  > > SCM_MAX_FD can fully replace it. > >  > > Signed-off-by: yuan linyu > > I don't think so: > > > @@ -341,7 +332,6 @@ struct scm_fp_list *scm_fp_dup(st

Re: [PATCH] net: remove member 'max' of struct scm_fp_list

2017-02-10 Thread David Miller
From: yuan linyu Date: Fri, 10 Feb 2017 20:11:13 +0800 > From: yuan linyu > > SCM_MAX_FD can fully replace it. > > Signed-off-by: yuan linyu I don't think so: > @@ -341,7 +332,6 @@ struct scm_fp_list *scm_fp_dup(struct scm_fp_list *fpl) > if (new_fpl) { > for (i = 0; i <

[PATCH] net: remove member 'max' of struct scm_fp_list

2017-02-10 Thread yuan linyu
From: yuan linyu SCM_MAX_FD can fully replace it. Signed-off-by: yuan linyu --- include/net/scm.h | 3 +-- net/core/scm.c| 20 +--- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/include/net/scm.h b/include/net/scm.h index 59fa93c..1301227 100644 --- a/inc