Re: sppp: remove duplicate initialisation

2019-06-22 Thread Sebastien Marie
On Sat, Jun 22, 2019 at 11:29:42AM +0200, Klemens Nanni wrote:
> OK?

OK semarie@
 
> Index: net/if_spppsubr.c
> ===
> RCS file: /cvs/src/sys/net/if_spppsubr.c,v
> retrieving revision 1.174
> diff -u -p -r1.174 if_spppsubr.c
> --- net/if_spppsubr.c 19 Feb 2018 08:59:52 -  1.174
> +++ net/if_spppsubr.c 22 Jun 2019 09:28:17 -
> @@ -3566,7 +3562,6 @@ sppp_chap_tlu(struct sppp *sp)
>   STDDCL;
>   int i = 0, x;
>  
> - i = 0;
>   sp->rst_counter[IDX_CHAP] = sp->lcp.max_configure;
>  
>   /*
> 

-- 
Sebastien Marie



sppp: remove duplicate initialisation

2019-06-22 Thread Klemens Nanni
OK?

Index: net/if_spppsubr.c
===
RCS file: /cvs/src/sys/net/if_spppsubr.c,v
retrieving revision 1.174
diff -u -p -r1.174 if_spppsubr.c
--- net/if_spppsubr.c   19 Feb 2018 08:59:52 -  1.174
+++ net/if_spppsubr.c   22 Jun 2019 09:28:17 -
@@ -3566,7 +3562,6 @@ sppp_chap_tlu(struct sppp *sp)
STDDCL;
int i = 0, x;
 
-   i = 0;
sp->rst_counter[IDX_CHAP] = sp->lcp.max_configure;
 
/*