PPP, remove useless ppp_init function

Simon says:

ppp_init() does not seem to be used. The only thing it does is calling
magic_init(), which is not required because it its called again later
from ppp_input().

Also, the time from startup is rather constant, so calling sys_jiffies()
from ppp_init() does not create a random number.
This commit is contained in:
Sylvain Rochet
2016-04-21 23:25:48 +02:00
parent 54f7cae12c
commit 15fbfb7363
3 changed files with 0 additions and 23 deletions

View File

@@ -561,18 +561,6 @@ err:
/*** PRIVATE FUNCTION DEFINITIONS ***/
/************************************/
/* Initialize the PPP subsystem. */
int ppp_init(void) {
/*
* Initialize magic number generator now so that protocols may
* use magic numbers in initialization.
*/
magic_init();
return 0;
}
/*
* Create a new PPP control block.
*