mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-17 21:56:45 +08:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user